Skip to content

Commit c9b3abb

Browse files
authored
[SE-0161] Fix minor typo (#2073)
1 parent 8ffd6fc commit c9b3abb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

proposals/0161-key-paths.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ We also explored many different spellings, each with different strengths. We hav
182182
| Case | `#keyPath` | Function Type Reference | Escape |
183183
| --- | --- | --- | --- |
184184
| Fully qualified | `#keyPath(Person, .friends[0].name)` | `Person.friends[0].name` | `\Person.friends[0].name` |
185-
| Type Inferred| `#keyPath(.friends[0].name)` |`Person.friends[0].name` | `\.friends[0].name` |
185+
| Type Inferred | `#keyPath(.friends[0].name)` |`Person.friends[0].name` | `\.friends[0].name` |
186186

187-
While the crispness of the function-type-reference is appealing, it becomes ambigious when working with type properties. The escape-sigil variant avoids this, and remains quite readable.
187+
While the crispness of the function-type-reference is appealing, it becomes ambiguous when working with type properties. The escape-sigil variant avoids this, and remains quite readable.
188188

189189
#### Why `\`?
190190
During review many different sigils were considered:
@@ -199,4 +199,3 @@ During review many different sigils were considered:
199199

200200
#### Function Type References
201201
We think the disambiguating benefits of the escape-sigil would greatly benefit function type references, but such considerations are outside the scope of this proposal.
202-

0 commit comments

Comments
 (0)