about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-04-07 18:06:01 +0000
committerbors <bors@rust-lang.org>2019-04-07 18:06:01 +0000
commit474e7a6486758ea6fc761893b1a49cd9076fb0ab (patch)
tree2a7d8095540e2338ce1b1b236f0052a981516d21 /src/libstd
parent11510b27b5e52eafdf25a4b398095262c17c201c (diff)
parentcd9bea3317114f13db945aac802b8de238ded934 (diff)
downloadrust-474e7a6486758ea6fc761893b1a49cd9076fb0ab.tar.gz
rust-474e7a6486758ea6fc761893b1a49cd9076fb0ab.zip
Auto merge of #59765 - lzutao:patch-1, r=Centril
Add reference to cfg attr

r? @QuietMisdreavus
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/macros.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs
index 44ca56e2611..14b266a4344 100644
--- a/src/libstd/macros.rs
+++ b/src/libstd/macros.rs
@@ -836,9 +836,11 @@ mod builtin {
     /// boolean expression evaluation of configuration flags. This frequently
     /// leads to less duplicated code.
     ///
-    /// The syntax given to this macro is the same syntax as the `cfg`
+    /// The syntax given to this macro is the same syntax as the [`cfg`]
     /// attribute.
     ///
+    /// [`cfg`]: ../reference/conditional-compilation.html#the-cfg-attribute
+    ///
     /// # Examples
     ///
     /// ```