Skip to content

Commit f5f5727

Browse files
committed
[SE-0258] Fix a few typos
1 parent 1bc7bdc commit f5f5727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/0258-property-wrappers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ class Foo {
375375

376376
Many Cocoa classes implement value-like objects that require explicit copying.
377377
Swift currently provides an `@NSCopying` attribute for properties to give
378-
them behavior like Objective-C's `@property(copy)`, invoking the `copy` method
378+
them behave like Objective-C's `@property(copy)`, invoking the `copy` method
379379
on new objects when the property is set. We can turn this into a wrapper:
380380

381381
```swift
@@ -1395,7 +1395,7 @@ public class MyClass: Superclass {
13951395
}
13961396
```
13971397

1398-
This "broadcast a notification that the value has changed" implementation cannot be cleanly factored into a property behavior type, because it needs access to both the underlying storage value (here, `backingMyVar`) and the `self` of the enclosing type. We could require a separate call to register the `self` instance with the wrapper type, e.g.,
1398+
This "broadcast a notification that the value has changed" implementation cannot be cleanly factored into a property wrapper type, because it needs access to both the underlying storage value (here, `backingMyVar`) and the `self` of the enclosing type. We could require a separate call to register the `self` instance with the wrapper type, e.g.,
13991399

14001400
```swift
14011401
protocol Observed {

0 commit comments

Comments
 (0)