File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ Pass-by-value
126126
127127In pass-by-value, if `A ` is an l-value expression, `foo(A) ` copies the
128128current value there. Any modifications `foo ` makes to its parameter
129- are make to this copy, not to the original l-value.
129+ are made to this copy, not to the original l-value.
130130
131131Most modern languages are pass-by-value, with specific functions able
132132to opt in to pass-by-reference semantics. This is exactly what Swift
@@ -345,7 +345,7 @@ just add default arguments at each step) have really awful performance
345345because the compiler is adding retains and releases at every single
346346level. It's just not a good convention to adopt by default. However,
347347we might want to consider allowing specific function parameters to opt
348- into it; sort comparators are an particularly interesting candidate
348+ into it; sort comparators are a particularly interesting candidate
349349for this. `unowned ` is very similar to C++'s `const & ` for things
350350like that.
351351
You can’t perform that action at this time.
0 commit comments