Skip to content

Commit 55782b2

Browse files
authored
Merge pull request swiftlang#29436 from amartini51/master
2 parents f77ea02 + 011a115 commit 55782b2

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

stdlib/public/core/Array.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ extension Array: _ArrayProtocol {
432432
///
433433
/// numbers.append(contentsOf: stride(from: 60, through: 100, by: 10))
434434
/// // numbers.count == 10
435-
/// // numbers.capacity == 12
435+
/// // numbers.capacity == 10
436436
@inlinable
437437
public var capacity: Int {
438438
return _getCapacity()

stdlib/public/core/ArraySlice.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ extension ArraySlice: _ArrayProtocol {
249249
///
250250
/// numbers.append(contentsOf: stride(from: 60, through: 100, by: 10))
251251
/// // numbers.count == 10
252-
/// // numbers.capacity == 12
252+
/// // numbers.capacity == 10
253253
@inlinable
254254
public var capacity: Int {
255255
return _getCapacity()

stdlib/public/core/ContiguousArray.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ extension ContiguousArray: _ArrayProtocol {
120120
///
121121
/// numbers.append(contentsOf: stride(from: 60, through: 100, by: 10))
122122
/// // numbers.count == 10
123-
/// // numbers.capacity == 12
123+
/// // numbers.capacity == 10
124124
@inlinable
125125
public var capacity: Int {
126126
return _getCapacity()

stdlib/public/core/Integers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ public protocol BinaryInteger :
696696
/// A type that represents the words of a binary integer.
697697
///
698698
/// The `Words` type must conform to the `RandomAccessCollection` protocol
699-
/// with an `Element` type of `UInt` and `Index` type of `Int.
699+
/// with an `Element` type of `UInt` and `Index` type of `Int`.
700700
associatedtype Words: RandomAccessCollection
701701
where Words.Element == UInt, Words.Index == Int
702702

stdlib/public/core/RangeReplaceableCollection.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ extension RangeReplaceableCollection {
952952
/// concatenate the elements of an integer array and a `Range<Int>` instance.
953953
///
954954
/// let numbers = [1, 2, 3, 4]
955-
/// let moreNumbers = numbers + 5...10
955+
/// let moreNumbers = numbers + (5...10)
956956
/// print(moreNumbers)
957957
/// // Prints "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]"
958958
///
@@ -981,7 +981,7 @@ extension RangeReplaceableCollection {
981981
/// concatenate the elements of a `Range<Int>` instance and an integer array.
982982
///
983983
/// let numbers = [7, 8, 9, 10]
984-
/// let moreNumbers = 1...6 + numbers
984+
/// let moreNumbers = (1...6) + numbers
985985
/// print(moreNumbers)
986986
/// // Prints "[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]"
987987
///

0 commit comments

Comments
 (0)