Skip to content

Commit 9a8bbe0

Browse files
[gardening] Fix recently introduced typos.
1 parent 4bc4f51 commit 9a8bbe0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

cmake/modules/AddSwift.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,8 +1251,8 @@ function(add_swift_library name)
12511251
${SWIFTLIB_SWIFT_COMPILE_FLAGS_WATCHOS})
12521252
elseif("${sdk}" STREQUAL "WINDOWS")
12531253
# FIXME(SR2005) static and shared are not mutually exclusive; however
1254-
# since we do a single build of the sources, this doesnt work for
1255-
# building both simultaneously. Effecitvely, only shared builds are
1254+
# since we do a single build of the sources, this doesn't work for
1255+
# building both simultaneously. Effectively, only shared builds are
12561256
# supported on windows currently.
12571257
if(SWIFTLIB_SHARED)
12581258
list(APPEND swiftlib_swift_compile_flags_all -D_USRDLL)

stdlib/private/StdlibUnittest/StdlibCoreExtras.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ extension MutableCollection
201201
}
202202
if beforeI == startIndex {
203203
// All elements are in non-increasing order. Reverse to form the first
204-
// pemutation, where all elements are sorted (in non-increasing order).
204+
// permutation, where all elements are sorted (in non-increasing order).
205205
reverse()
206206
return .formedFirstPermutation
207207
}

stdlib/public/SDK/Foundation/Data.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ public struct Data : ReferenceConvertible, CustomStringConvertible, Equatable, H
452452
///
453453
/// This will resize the data if required, to fit the entire contents of `data`.
454454
///
455-
/// - precondition: The bounds of `subrange` must be valid indicies of the collection.
455+
/// - precondition: The bounds of `subrange` must be valid indices of the collection.
456456
/// - parameter subrange: The range in the data to replace. If `subrange.lowerBound == data.count && subrange.count == 0` then this operation is an append.
457457
/// - parameter data: The replacement data.
458458
public mutating func replaceSubrange(_ subrange: Range<Index>, with data: Data) {
@@ -469,7 +469,7 @@ public struct Data : ReferenceConvertible, CustomStringConvertible, Equatable, H
469469
///
470470
/// This will resize the data if required, to fit the entire contents of `buffer`.
471471
///
472-
/// - precondition: The bounds of `subrange` must be valid indicies of the collection.
472+
/// - precondition: The bounds of `subrange` must be valid indices of the collection.
473473
/// - parameter subrange: The range in the data to replace.
474474
/// - parameter buffer: The replacement bytes.
475475
public mutating func replaceSubrange<SourceType>(_ subrange: Range<Index>, with buffer: UnsafeBufferPointer<SourceType>) {
@@ -486,7 +486,7 @@ public struct Data : ReferenceConvertible, CustomStringConvertible, Equatable, H
486486
///
487487
/// This will resize the data if required, to fit the entire contents of `newElements`.
488488
///
489-
/// - precondition: The bounds of `subrange` must be valid indicies of the collection.
489+
/// - precondition: The bounds of `subrange` must be valid indices of the collection.
490490
/// - parameter subrange: The range in the data to replace.
491491
/// - parameter newElements: The replacement bytes.
492492
public mutating func replaceSubrange<ByteCollection : Collection where ByteCollection.Iterator.Element == Data.Iterator.Element>(_ subrange: Range<Index>, with newElements: ByteCollection) {

0 commit comments

Comments
 (0)