File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1089,10 +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 copied data are in mutable
1093
- slots, they can change the semantics of your program. So we’d like to
1094
- define a function that takes the points by pointer. We can use
1095
- borrowed pointers to do this:
1092
+ bad, but often copies are expensive. So we’d like to define a function
1093
+ that takes the points by pointer. We can use borrowed pointers to do this:
1096
1094
1097
1095
~~~
1098
1096
# struct Point { x: float, y: float }
You can’t perform that action at this time.
0 commit comments