Skip to content

Commit 3b9a9fc

Browse files
yeahwhatevermarijnh
authored andcommitted
Remove reference to tags, replace enums.
1 parent 61b5cc9 commit 3b9a9fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ destructors. Resources might go away in the future.
13461346
Rust datatypes are not trivial to copy (the way, for example,
13471347
JavaScript values can be copied by simply taking one or two machine
13481348
words and plunking them somewhere else). Shared boxes require
1349-
reference count updates, big records, tags, or unique pointers require
1349+
reference count updates, big records, enums, or unique pointers require
13501350
an arbitrary amount of data to be copied (plus updating the reference
13511351
counts of shared boxes hanging off them).
13521352

@@ -1459,7 +1459,7 @@ alt my_rec {
14591459

14601460
The fact that arguments are conceptually passed by safe reference does
14611461
not mean all arguments are passed by pointer. Composite types like
1462-
records and tags *are* passed by pointer, but single-word values, like
1462+
records and enums *are* passed by pointer, but single-word values, like
14631463
integers and pointers, are simply passed by value. Most of the time,
14641464
the programmer does not have to worry about this, as the compiler will
14651465
simply pick the most efficient passing style. There is one exception,

0 commit comments

Comments
 (0)