From e68697b55e0b89c72ab52e7a8004cc1ceb7619ff Mon Sep 17 00:00:00 2001 From: gifnksm Date: Tue, 23 Jul 2013 12:17:42 +0900 Subject: [PATCH] tutorial: Remove the sentence about mutable fields. --- doc/tutorial.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/tutorial.md b/doc/tutorial.md index 5277c13ab9a..de11a297d89 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -1089,10 +1089,8 @@ we might like to compute the distance between `on_the_stack` and to define a function that takes two arguments of type point—that is, it takes the points by value. But this will cause the points to be copied when we call the function. For points, this is probably not so -bad, but often copies are expensive or, worse, if copied data are in mutable -slots, they can change the semantics of your program. So we’d like to -define a function that takes the points by pointer. We can use -borrowed pointers to do this: +bad, but often copies are expensive. So we’d like to define a function +that takes the points by pointer. We can use borrowed pointers to do this: ~~~ # struct Point { x: float, y: float }