Skip to content

Commit 85e2171

Browse files
committed
SE-0458: Fix typos
1 parent 48c0994 commit 85e2171

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/0458-strict-memory-safety.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ The `@unsafe` annotation is at the class level because any use of the `Sub` type
470470

471471
#### `for..in` loops
472472

473-
Swift's `for..in` loops are effectively implemented as syntactic sugar over the `Sequence` and `IteratorProtocol` protocols, where the `for..in` creates a new iterator (with `Sequence.makeIterator()`) and then calls its `next()` operation for each loop iteration. If the conformances to `Sequence` are `IteratorProtocol` is `@unsafe`, the loop will introduce a warning:
473+
Swift's `for..in` loops are effectively implemented as syntactic sugar over the `Sequence` and `IteratorProtocol` protocols, where the `for..in` creates a new iterator (with `Sequence.makeIterator()`) and then calls its `next()` operation for each loop iteration. If the conformances to `Sequence` or `IteratorProtocol` are `@unsafe`, the loop will introduce a warning:
474474

475475
```swift
476476
let someUnsafeBuffer: UnsafeBufferPointer<Element> = unsafe ...
@@ -824,7 +824,7 @@ We could introduce an optional `message` argument to the `@unsafe` attribute, wh
824824

825825
## Revision history
826826

827-
* **Revision 3 (following second review eextension)**
827+
* **Revision 3 (following second review extension)**
828828
* Do not require declarations with unsafe types in their signature to be marked `@unsafe`; it is implied. They may be marked `@safe` to indicate that they are actually safe.
829829
* Add `unsafe` for iteration via the `for..in` syntax.
830830
* Add C(++) interoperability section that infers `@unsafe` for C types that involve pointers.

0 commit comments

Comments
 (0)