about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPiotr Szotkowski <chastell@chastell.net>2014-10-26 09:34:00 +0100
committerPiotr Szotkowski <chastell@chastell.net>2014-11-04 19:39:12 +0100
commit9be04d574af487e15b4cfc4c6a07538f144b7a53 (patch)
tree46cefe9e136a250a25ee3ffff3f6ad0c4a0edc8f
parentc7182ba9971e36e2a7bfb12630f68e902f7180a3 (diff)
downloadrust-9be04d574af487e15b4cfc4c6a07538f144b7a53.tar.gz
rust-9be04d574af487e15b4cfc4c6a07538f144b7a53.zip
Guide: drop line-number cruft from elided error examples
-rw-r--r--src/doc/guide.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md
index d7990e59bb5..1332d6fed59 100644
--- a/src/doc/guide.md
+++ b/src/doc/guide.md
@@ -3419,7 +3419,7 @@ let y = &mut x;
 Rust will complain:
 
 ```{ignore,notrust}
-6:19 error: cannot borrow immutable local variable `x` as mutable
+error: cannot borrow immutable local variable `x` as mutable
  let y = &mut x;
               ^
 ```
@@ -3734,10 +3734,10 @@ let y = &mut x;
 This gives us this error:
 
 ```{notrust,ignore}
-8:7 error: cannot use `*x` because it was mutably borrowed
+error: cannot use `*x` because it was mutably borrowed
  *x;
  ^~
- 6:19 note: borrow of `x` occurs here
+note: borrow of `x` occurs here
  let y = &mut x;
               ^
 ```
@@ -4530,8 +4530,8 @@ So this would give us the numbers from `2-100`. Well, almost! If you
 compile the example, you'll get a warning:
 
 ```{notrust,ignore}
-2:37 warning: unused result which must be used: iterator adaptors are lazy and
-              do nothing unless consumed, #[warn(unused_must_use)] on by default
+warning: unused result which must be used: iterator adaptors are lazy and
+         do nothing unless consumed, #[warn(unused_must_use)] on by default
  range(1i, 100i).map(|x| x + 1i);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ```