Skip to content

Commit 62ce892

Browse files
authored
Modified code snippet in OptimizationTips.rst
The given code snippet assigns some value to the method: `doSomething()`, but it seems that it should be just in the form of method invocation.
1 parent 222946b commit 62ce892

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/OptimizationTips.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ in the following ``C.array1`` and ``D.array1`` will be accessed directly
135135
136136
func usingC(_ c: C) {
137137
c.array1[i] = ... // Can directly access C.array without going through dynamic dispatch.
138-
c.doSomething() = ... // Can directly call C.doSomething without going through virtual dispatch.
138+
c.doSomething() // Can directly call C.doSomething without going through virtual dispatch.
139139
}
140140
141141
func usingD(_ d: D) {

0 commit comments

Comments
 (0)