@@ -992,7 +992,7 @@ task-local garbage collector. It will be destroyed at some point after there
992
992
are no references left to the box, no later than the end of the task. Managed
993
993
boxes lack an owner, so they start a new ownership tree and don't inherit
994
994
mutability. They do own the contained object, and mutability is defined by the
995
- type of the shared box (` @ ` or ` @mut ` ). An object containing a managed box is
995
+ type of the managed box (` @ ` or ` @mut ` ). An object containing a managed box is
996
996
not ` Owned ` , and can't be sent between tasks.
997
997
998
998
~~~~
@@ -1089,8 +1089,8 @@ we might like to compute the distance between `on_the_stack` and
1089
1089
to define a function that takes two arguments of type point—that is,
1090
1090
it takes the points by value. But this will cause the points to be
1091
1091
copied when we call the function. For points, this is probably not so
1092
- bad, but often copies are expensive or, worse, if there are mutable
1093
- fields , they can change the semantics of your program. So we’d like to
1092
+ bad, but often copies are expensive or, worse, if copied data are in mutable
1093
+ slots , they can change the semantics of your program. So we’d like to
1094
1094
define a function that takes the points by pointer. We can use
1095
1095
borrowed pointers to do this:
1096
1096
0 commit comments