Skip to content

Commit a0d2cab

Browse files
authored
Spelling stdlib/public/core (#42441)
* spelling: available Signed-off-by: Josh Soref <[email protected]> * spelling: components Signed-off-by: Josh Soref <[email protected]> * spelling: conjunction Signed-off-by: Josh Soref <[email protected]> * spelling: conversion Signed-off-by: Josh Soref <[email protected]> * spelling: enforce Signed-off-by: Josh Soref <[email protected]> * spelling: guarantee Signed-off-by: Josh Soref <[email protected]> * spelling: interchangeable Signed-off-by: Josh Soref <[email protected]> * spelling: satisfied Signed-off-by: Josh Soref <[email protected]> * spelling: superfluous Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Josh Soref <[email protected]>
1 parent 8b57db7 commit a0d2cab

9 files changed

+11
-11
lines changed

stdlib/public/core/ContiguouslyStored.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
// NOTE: The below is necessary for fast String initialization from untyped
14-
// memory. When we add Collection.withContiguousRawStorageIfAvailabe(), we can
14+
// memory. When we add Collection.withContiguousRawStorageIfAvailable(), we can
1515
// deprecate this functionality.
1616

1717
@usableFromInline

stdlib/public/core/FloatingPointTypes.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ extension ${Self} {
10781078
// the original value; if so, the conversion was exact. We need to be
10791079
// careful, however, to make sure that the first conversion does not
10801080
// round to a value that is out of the defined range of the second
1081-
// converion. E.g. Float(Int.max) rounds to Int.max + 1, and converting
1081+
// conversion. E.g. Float(Int.max) rounds to Int.max + 1, and converting
10821082
// that back to Int will trap. For Float, Double, and Float80, this is
10831083
// only an issue for the upper bound (because the lower bound of [U]Int
10841084
// is either zero or a power of two, both of which are exactly

stdlib/public/core/Integers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2036,7 +2036,7 @@ where Magnitude: FixedWidthInteger & UnsignedInteger,
20362036
/// // result.low == 128
20372037
///
20382038
/// The product of `x` and `y` is `-1920`, which is too large to represent in
2039-
/// an `Int8` instance. The `high` and `low` compnents of the `result` value
2039+
/// an `Int8` instance. The `high` and `low` components of the `result` value
20402040
/// represent `-1920` when concatenated to form a double-width integer; that
20412041
/// is, using `result.high` as the high byte and `result.low` as the low byte
20422042
/// of an `Int16` instance.

stdlib/public/core/SIMDConcreteOperations.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ extension SIMDMask where Storage == ${Vector} {
7272
)))
7373
}
7474

75-
/// Replaces `a` with the pointwise logical conjuction of `a` and `b`.
75+
/// Replaces `a` with the pointwise logical conjunction of `a` and `b`.
7676
///
7777
/// Equivalent to:
7878
/// ```

stdlib/public/core/SIMDVector.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,7 @@ extension SIMDMask {
14151415
return a .| SIMDMask(repeating: b)
14161416
}
14171417

1418-
/// Replaces `a` with the pointwise logical conjuction of `a` and `b`.
1418+
/// Replaces `a` with the pointwise logical conjunction of `a` and `b`.
14191419
///
14201420
/// Equivalent to:
14211421
/// ```
@@ -1454,7 +1454,7 @@ extension SIMDMask {
14541454
a = a .| b
14551455
}
14561456

1457-
/// Replaces `a` with the pointwise logical conjuction of `a` and `b`.
1457+
/// Replaces `a` with the pointwise logical conjunction of `a` and `b`.
14581458
///
14591459
/// Equivalent to:
14601460
/// ```

stdlib/public/core/Sort.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ extension UnsafeMutableBufferPointer {
570570
// (b) - for c = runs.count - 1:
571571
// - runs[c - 1].count > runs[c].count
572572
//
573-
// Loop until the invariant is satisified for the top four elements of
573+
// Loop until the invariant is satisfied for the top four elements of
574574
// `runs`. Because this method is called for every added run, and only
575575
// the top three runs are ever merged, this guarantees the invariant holds
576576
// for the whole array.

stdlib/public/core/StringIndex.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ extension String.Index {
336336
// (The sequence of characters in a substring depend only on the Unicode scalars
337337
// that make up its contents, not on their surrounding context.) Therefore, such
338338
// substrings must not look at or set this bit: indices must be reliably
339-
// interchangable between strings and their associated substrings, even if the
339+
// interchangeable between strings and their associated substrings, even if the
340340
// latter are irregular.
341341
//
342342
// Note that `startIndex` and `endIndex` have fully inlinable implementations.

stdlib/public/core/StringStorage.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ fileprivate struct _CapacityAndFlags {
134134
Tail Allocations:
135135

136136
`__StringStorage.create` takes a requested minimum code unit capacity and a
137-
count (which it uses to gurantee null-termination invariant). This will
137+
count (which it uses to guarantee null-termination invariant). This will
138138
allocate the class header and a tail allocation for the requested capacity plus
139139
one (for the null-terminator), plus any excess `malloc` bucket space. If
140140
breadcrumbs need be present, they appear at the very end of the allocation.
@@ -457,7 +457,7 @@ extension __StringStorage {
457457
// The unused capacity available for appending. Note that this excludes the
458458
// required nul-terminator.
459459
//
460-
// NOTE: Callers who wish to mutate this storage should enfore nul-termination
460+
// NOTE: Callers who wish to mutate this storage should enforce nul-termination
461461
//
462462
// TODO: Refactoring or removing. Excluding the last byte is awkward.
463463
@inline(__always)

stdlib/public/core/UnsafeBufferPointer.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ extension Unsafe${Mutable}BufferPointer: ${Mutable}Collection, RandomAccessColle
296296
// NOTE: Range checks are not performed here, because it is done later by
297297
// the subscript function.
298298
// NOTE: We allow the subtraction to silently overflow in release builds
299-
// to eliminate a superflous check when `start` and `end` are both valid
299+
// to eliminate a superfluous check when `start` and `end` are both valid
300300
// indices. (The operation can only overflow if `start` is negative, which
301301
// implies it's an invalid index.) `Collection` does not specify what
302302
// `distance` should return when given an invalid index pair.

0 commit comments

Comments
 (0)