diff options
| author | jyn <github@jyn.dev> | 2025-08-28 17:11:31 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-28 17:11:31 -0400 |
| commit | c25686558b90da2c68232589c1410abbf9ccca43 (patch) | |
| tree | 9deef8d2900cc1f35cef6b8496b07ebd44374a9b | |
| parent | 7a38d68e0407d7fb4692a1e5b7a8b3958487980a (diff) | |
| parent | 4996f53d8d770e8d481d5a59729dd163c5cfae32 (diff) | |
| download | rust-c25686558b90da2c68232589c1410abbf9ccca43.tar.gz rust-c25686558b90da2c68232589c1410abbf9ccca43.zip | |
Merge pull request #2553 from ali90h/fix-stab-guide-gating-v2
stabilization_guide: fix macro name and syntax in gating example
| -rw-r--r-- | src/doc/rustc-dev-guide/src/stabilization_guide.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/stabilization_guide.md b/src/doc/rustc-dev-guide/src/stabilization_guide.md index e399930fc52..7b9e1eb5629 100644 --- a/src/doc/rustc-dev-guide/src/stabilization_guide.md +++ b/src/doc/rustc-dev-guide/src/stabilization_guide.md @@ -82,7 +82,7 @@ Most importantly, remove the code which flags an error if the feature-gate is no gate_all!(pub_restricted, "`pub(restricted)` syntax is experimental"); ``` -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. +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. For more subtle features, you may find code like this: |
