about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorAli Nazzal <ali90h7@pm.me>2025-08-26 09:35:08 +0300
committerAli Nazzal <ali90h7@pm.me>2025-08-26 09:35:08 +0300
commit4996f53d8d770e8d481d5a59729dd163c5cfae32 (patch)
tree818cb0d7e75fd2ac128a7191350e1442f9c25075 /src/doc/rustc-dev-guide
parentd1d1fb3bb1ff6c8ea38293c4362aa4716d13eafa (diff)
downloadrust-4996f53d8d770e8d481d5a59729dd163c5cfae32.tar.gz
rust-4996f53d8d770e8d481d5a59729dd163c5cfae32.zip
stabilization_guide: fix macro name and syntax in gating example
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/stabilization_guide.md2
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: