about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorlzutao <taolzu@gmail.com>2019-04-07 11:48:14 +0700
committerGitHub <noreply@github.com>2019-04-07 11:48:14 +0700
commitcd9bea3317114f13db945aac802b8de238ded934 (patch)
treeacf83f7fbbc24e6a4a644712c050f58b141bcdee /src/libstd
parentdec0a98c4b392b5fd153ba8b944c496218717813 (diff)
downloadrust-cd9bea3317114f13db945aac802b8de238ded934.tar.gz
rust-cd9bea3317114f13db945aac802b8de238ded934.zip
Add reference to cfg attr
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 be4db1f737d..7228886fe55 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
     ///
     /// ```