Skip to content

Commit d62a69b

Browse files
committed
Update example.
1 parent aa2dfe3 commit d62a69b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/0479-method-and-initializer-keypaths.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ struct DynamicKeyPathWrapper<Root> {
142142
}
143143

144144
let dynamicCalculator = DynamicKeyPathWrapper(root: Calculator())
145-
let subtract = dynamicCalculator.subtract
146-
print(subtract(10))
145+
let power = dynamicCalculator.power
146+
print(power(10, 2))
147147
```
148148

149149
### Effectful value types

0 commit comments

Comments
 (0)