Skip to content

Commit 595726a

Browse files
committed
---
yaml --- r: 158687 b: refs/heads/snap-stage3 c: 9be04d5 h: refs/heads/master i: 158685: d79dcd4 158683: 40ac8e7 158679: 59df0d5 158671: 772e40f 158655: 59805a6 v: v3
1 parent 6faa84f commit 595726a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 0b48001c28329392b26961eaf1c3ed293a352d6f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: c7182ba9971e36e2a7bfb12630f68e902f7180a3
4+
refs/heads/snap-stage3: 9be04d574af487e15b4cfc4c6a07538f144b7a53
55
refs/heads/try: f58aad6dce273570fb130b4df008ef9acd5a5be2
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/doc/guide.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3419,7 +3419,7 @@ let y = &mut x;
34193419
Rust will complain:
34203420

34213421
```{ignore,notrust}
3422-
6:19 error: cannot borrow immutable local variable `x` as mutable
3422+
error: cannot borrow immutable local variable `x` as mutable
34233423
let y = &mut x;
34243424
^
34253425
```
@@ -3734,10 +3734,10 @@ let y = &mut x;
37343734
This gives us this error:
37353735

37363736
```{notrust,ignore}
3737-
8:7 error: cannot use `*x` because it was mutably borrowed
3737+
error: cannot use `*x` because it was mutably borrowed
37383738
*x;
37393739
^~
3740-
6:19 note: borrow of `x` occurs here
3740+
note: borrow of `x` occurs here
37413741
let y = &mut x;
37423742
^
37433743
```
@@ -4530,8 +4530,8 @@ So this would give us the numbers from `2-100`. Well, almost! If you
45304530
compile the example, you'll get a warning:
45314531

45324532
```{notrust,ignore}
4533-
2:37 warning: unused result which must be used: iterator adaptors are lazy and
4534-
do nothing unless consumed, #[warn(unused_must_use)] on by default
4533+
warning: unused result which must be used: iterator adaptors are lazy and
4534+
do nothing unless consumed, #[warn(unused_must_use)] on by default
45354535
range(1i, 100i).map(|x| x + 1i);
45364536
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45374537
```

0 commit comments

Comments
 (0)