Skip to content

Commit 97fae3c

Browse files
committed
Yet more minor fixes
1 parent 3e68edf commit 97fae3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

proposals/nnnn-strict-memory-safety.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,14 @@ The following language constructs are always considered to be unsafe:
285285
The following language constructs are considered to be unsafe when strict concurrency checking is enabled (i.e., in the Swift 6 language mode):
286286

287287
* `nonisolated(unsafe)`: Allows a property to be accessed from concurrent code without ensuring that such accesses are done so safely. Uses of `nonisolated(unsafe)` entities are not memory-safe.
288-
* `@preconcurrency` imports: Suppresses diagnostics related to data race safety when they relate to specific imported modules, which can introduce thread safety issues. The `@preconcurrency` import will need to be annotated with `@unsafe` in the strict dsafety mode.
288+
* `@preconcurrency` imports: Suppresses diagnostics related to data race safety when they relate to specific imported modules, which can introduce thread safety issues. The `@preconcurrency` import will need to be annotated with `@unsafe` in the strict safety mode.
289289

290290
### Unsafe standard library APIs
291291

292292
In the standard library, the following functions and types would be marked `@unsafe` :
293293

294294
* `Unsafe(Mutable)(Raw)(Buffer)Pointer`, `OpaquePointer`, `CVaListPointer`: These types provide neither lifetime nor bounds safety. Over time, Swift code is likely to move toward their safe replacements, such as `(Raw)Span`.
295-
* `(Closed)Range.init(uncheckedBounds:)`: This operation makes it possible to create a range that doesn't satisfy invariants on which other bounds safety checking (e.g., in `Array.subscript`)
295+
* `(Closed)Range.init(uncheckedBounds:)`: This operation makes it possible to create a range that doesn't satisfy invariants on which other bounds safety checking (e.g., in `Array.subscript`) relies.
296296
* `Span.subscript(unchecked:)` : An unchecked subscript whose use can introduce bounds safety problems.
297297
* `Unmanaged`: Wrapper over reference-counted types that explicitly disables reference counting, potentially introducing lifetime safety issues.
298298
* `unsafeBitCast`: Allows type casts that are not known to be safe, which can introduce type safety problems.

0 commit comments

Comments
 (0)