You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stdlib/public/SDK/Foundation/Data.swift
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -452,7 +452,7 @@ public struct Data : ReferenceConvertible, CustomStringConvertible, Equatable, H
452
452
///
453
453
/// This will resize the data if required, to fit the entire contents of `data`.
454
454
///
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.
456
456
/// - parameter subrange: The range in the data to replace. If `subrange.lowerBound == data.count && subrange.count == 0` then this operation is an append.
457
457
/// - parameter data: The replacement data.
458
458
publicmutatingfunc replaceSubrange(_ subrange:Range<Index>, with data:Data){
@@ -469,7 +469,7 @@ public struct Data : ReferenceConvertible, CustomStringConvertible, Equatable, H
469
469
///
470
470
/// This will resize the data if required, to fit the entire contents of `buffer`.
471
471
///
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.
473
473
/// - parameter subrange: The range in the data to replace.
474
474
/// - parameter buffer: The replacement bytes.
475
475
publicmutatingfunc replaceSubrange<SourceType>(_ subrange:Range<Index>, with buffer:UnsafeBufferPointer<SourceType>){
@@ -486,7 +486,7 @@ public struct Data : ReferenceConvertible, CustomStringConvertible, Equatable, H
486
486
///
487
487
/// This will resize the data if required, to fit the entire contents of `newElements`.
488
488
///
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.
490
490
/// - parameter subrange: The range in the data to replace.
491
491
/// - parameter newElements: The replacement bytes.
492
492
publicmutatingfunc replaceSubrange<ByteCollection :Collectionwhere ByteCollection.Iterator.Element ==Data.Iterator.Element>(_ subrange:Range<Index>, with newElements:ByteCollection){
0 commit comments