Skip to content

Commit 290ef4f

Browse files
committed
---
yaml --- r: 127672 b: refs/heads/snap-stage3 c: 9c772cd h: refs/heads/master v: v3
1 parent d4ab49e commit 290ef4f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
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: 49a970f2449a78f28b6c301e542d38593094ca77
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 9151599ec87e86b429e049b251a5470a29ea5948
4+
refs/heads/snap-stage3: 9c772cd391034ad29a444e748708df5a0bfff0a2
55
refs/heads/try: d9c23fcbaea89871667272a67ecb8d3a512162f3
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,6 +1133,16 @@ let xs = Cons(1, box Cons(2, box Cons(3, box Nil)));
11331133
let ys = xs; // copies `Cons(u32, pointer)` shallowly
11341134
~~~
11351135

1136+
> *Note:* Names like `xs` and `ys` are a naming
1137+
> convention for collection-like data structures
1138+
> (like our `List`). These collections are given
1139+
> names appended with 's' to signify plurality,
1140+
> i.e. that the data structure stores multiple
1141+
> elements. For example, `xs` in this case can
1142+
> be read as "a list of ex-es", where "x" here
1143+
> are elements of type `u32`.
1144+
1145+
11361146
Rust will consider a shallow copy of a type with a destructor like `List` to
11371147
*move ownership* of the value. After a value has been moved, the source
11381148
location cannot be used unless it is reinitialized.

0 commit comments

Comments
 (0)