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 25c8644

Browse files
committed
stabilization_guide: fix macro name and syntax in gating example
1 parent a03c1ef commit 25c8644

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 によって変換されたページ (->オリジナル) /