Skip to content

Commit 6c76d83

Browse files
Joris Rehmthestinger
authored andcommitted
---
yaml --- r: 63525 b: refs/heads/snap-stage3 c: 87c1105 h: refs/heads/master i: 63523: 8d560da v: v3
1 parent 938f342 commit 6c76d83

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
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: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 525933d0a3444ca05f29f8777bf2bd1c5a2d92e3
4+
refs/heads/snap-stage3: 87c110506dcdb4cd5b4a10e2114832cc130a59c9
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/doc/tutorial-borrowed-ptr.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ would therefore be subject to garbage collection. A heap box that is
234234
unrooted is one such that no pointer values in the heap point to
235235
it. It would violate memory safety for the box that was originally
236236
assigned to `x` to be garbage-collected, since a non-heap
237-
pointer---`y`---still points into it.
237+
pointer *`y`* still points into it.
238238

239239
> ***Note:*** Our current implementation implements the garbage collector
240240
> using reference counting and cycle detection.
@@ -475,7 +475,7 @@ but otherwise it requires that the data reside in immutable memory.
475475

476476
# Returning borrowed pointers
477477

478-
So far, all of the examples we've looked at use borrowed pointers in a
478+
So far, all of the examples we have looked at, use borrowed pointers in a
479479
“downward” direction. That is, a method or code block creates a
480480
borrowed pointer, then uses it within the same scope. It is also
481481
possible to return borrowed pointers as the result of a function, but
@@ -509,7 +509,7 @@ guaranteed to refer to a distinct lifetime from the lifetimes of all
509509
other parameters.
510510

511511
Named lifetimes that appear in function signatures are conceptually
512-
the same as the other lifetimes we've seen before, but they are a bit
512+
the same as the other lifetimes we have seen before, but they are a bit
513513
abstract: they don’t refer to a specific expression within `get_x()`,
514514
but rather to some expression within the *caller of `get_x()`*. The
515515
lifetime `r` is actually a kind of *lifetime parameter*: it is defined

branches/snap-stage3/doc/tutorial-tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ an `Error` result.
481481
TODO: Need discussion of `future_result` in order to make failure
482482
modes useful.
483483

484-
But not all failure is created equal. In some cases you might need to
484+
But not all failures are created equal. In some cases you might need to
485485
abort the entire program (perhaps you're writing an assert which, if
486486
it trips, indicates an unrecoverable logic error); in other cases you
487487
might want to contain the failure at a certain boundary (perhaps a

branches/snap-stage3/doc/tutorial.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,8 +1084,8 @@ let managed_box : @Point = @Point { x: 5.0, y: 1.0 };
10841084
let owned_box : ~Point = ~Point { x: 7.0, y: 9.0 };
10851085
~~~
10861086
1087-
Suppose we wanted to write a procedure that computed the distance
1088-
between any two points, no matter where they were stored. For example,
1087+
Suppose we want to write a procedure that computes the distance
1088+
between any two points, no matter where they are stored. For example,
10891089
we might like to compute the distance between `on_the_stack` and
10901090
`managed_box`, or between `managed_box` and `owned_box`. One option is
10911091
to define a function that takes two arguments of type point—that is,
@@ -1230,7 +1230,7 @@ let area = rect.area();
12301230
~~~
12311231
12321232
You can write an expression that dereferences any number of pointers
1233-
automatically. For example, if you felt inclined, you could write
1233+
automatically. For example, if you feel inclined, you could write
12341234
something silly like
12351235
12361236
~~~
@@ -1808,7 +1808,7 @@ s.draw_borrowed();
18081808
~~~
18091809

18101810
Implementations may also define standalone (sometimes called "static")
1811-
methods. The absence of a `self` paramater distinguishes such methods.
1811+
methods. The absence of a `self` parameter distinguishes such methods.
18121812
These methods are the preferred way to define constructor functions.
18131813

18141814
~~~~ {.xfail-test}
@@ -2522,7 +2522,7 @@ will not be compiled successfully.
25222522

25232523
## A minimal example
25242524

2525-
Now for something that you can actually compile yourself. We have
2525+
Now for something that you can actually compile yourself, we have
25262526
these two files:
25272527

25282528
~~~~

0 commit comments

Comments
 (0)