about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2018-03-08 17:25:58 -0800
committerGitHub <noreply@github.com>2018-03-08 17:25:58 -0800
commit5ab485599d583d6269a24b2cdb070f91030422df (patch)
tree7ee7719774b2e059b3dfb6e54d9eeacf7ba268a4 /src/libstd
parent68e7282aa8be0040ca779d7ac7300b1de2900551 (diff)
parent2d7472fadcfd6b214d6fcfb1313104bdf56609fb (diff)
downloadrust-5ab485599d583d6269a24b2cdb070f91030422df.tar.gz
rust-5ab485599d583d6269a24b2cdb070f91030422df.zip
Rollup merge of #48856 - Songbird0:improve_line_macro_documentation, r=joshtriplett
Modify part of `line!` documentation.

In accordance with #46997, I've replaced:

> The returned line is not the invocation of the line! macro itself [...]

By

> The returned line is *not necessarily* the line of the `line!` invocation itself [...]
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs
index a18c811d196..5fb3b85b8cd 100644
--- a/src/libstd/macros.rs
+++ b/src/libstd/macros.rs
@@ -472,7 +472,7 @@ pub mod builtin {
     /// The expanded expression has type `u32` and is 1-based, so the first line
     /// in each file evaluates to 1, the second to 2, etc. This is consistent
     /// with error messages by common compilers or popular editors.
-    /// The returned line is not the invocation of the `line!` macro itself,
+    /// The returned line is *not necessarily* the line of the `line!` invocation itself,
     /// but rather the first macro invocation leading up to the invocation
     /// of the `line!` macro.
     ///