Skip to content

Commit bc6567f

Browse files
Update 0418-inferring-sendable-for-methods.md
Small typo around code voice usage.
1 parent a398d34 commit bc6567f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proposals/0418-inferring-sendable-for-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ let ageKP = \User.age
262262
let infoKP = \User.[Info()]
263263
```
264264

265-
The type of age`KP` is `KeyPath<User, Int>` because `age` is isolated to a global actor. Similarly `infoKP` is a non-Sendable key path because `Info()` argument to a subscript reference has a non-Sendable type.
265+
The type of `ageKP` is `KeyPath<User, Int>` because `age` is isolated to a global actor. Similarly `infoKP` is a non-Sendable key path because `Info()` argument to a subscript reference has a non-Sendable type.
266266

267267
Key path types respect all of the existing sub-typing rules related to Sendable protocol which means a key path that is not marked as Sendable cannot be assigned to a value that is Sendable.
268268

0 commit comments

Comments
 (0)