Skip to content

Commit 91b70a7

Browse files
committed
---
yaml --- r: 42746 b: refs/heads/try c: 6cabe2b h: refs/heads/master v: v3
1 parent 963d2fc commit 91b70a7

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5-
refs/heads/try: 88bec09e6345d64d334c6dc1ef4947b35c467373
5+
refs/heads/try: 6cabe2b90226e2262c8c1937b604d9f2c6f14059
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/doc/tutorial-borrowed-ptr.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ rejected by the compiler):
302302
fn example3() -> int {
303303
let mut x = ~X {f: 3};
304304
let y = &x.f;
305-
x = ~{f: 4}; // Error reported here.
305+
x = ~X {f: 4}; // Error reported here.
306306
*y
307307
}
308308
~~~
@@ -369,9 +369,11 @@ box's owner. Consider a program like this:
369369
~~~
370370
struct R { g: int }
371371
struct S { mut f: ~R }
372-
fn example5a(x: @S ...) -> int {
372+
fn example5a(x: @S, callback: @fn()) -> int {
373373
let y = &x.f.g; // Error reported here.
374374
...
375+
callback();
376+
...
375377
# return 0;
376378
}
377379
~~~

0 commit comments

Comments
 (0)