Skip to content

Commit 843b25b

Browse files
authored
Merge pull request #34423 from valeriyvan/patch-2
Fix snippet in OptimizationTips.rst
2 parents 5a92dfb + 441c3a1 commit 843b25b

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)