Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 77c0910

Browse files
authored
Merge pull request #2553 from ali90h/fix-stab-guide-gating-v2
stabilization_guide: fix macro name and syntax in gating example
2 parents 175c3e6 + 25c8644 commit 77c0910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/stabilization_guide.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Most importantly, remove the code which flags an error if the feature-gate is no
8282
gate_all!(pub_restricted, "`pub(restricted)` syntax is experimental");
8383
```
8484

85-
This `gate_feature_post!` macro prints an error if the `pub_restricted` feature is not enabled. It is not needed now that `#[pub_restricted]` is stable.
85+
The `gate_all!` macro reports an error if the `pub_restricted` feature is not enabled. It is not needed now that `pub(restricted)` is stable.
8686

8787
For more subtle features, you may find code like this:
8888

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /