Skip to content

Commit 441c3a1

Browse files
authored
Update OptimizationTips.rst
Fix snippet
1 parent 246fe46 commit 441c3a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/OptimizationTips.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ end of the callee. This means that if one writes a function like the following:
263263
::
264264

265265
func append_one(_ a: [Int]) -> [Int] {
266+
var a = a
266267
a.append(1)
267268
return a
268269
}

0 commit comments

Comments
 (0)