Skip to content

Commit bf8441d

Browse files
committed
[BasicContainers] Fix typos in doc comments
1 parent a9b64d4 commit bf8441d

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Sources/BasicContainers/RigidArray/RigidArray+Container.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ extension RigidArray where Element: ~Copyable {
303303
/// This optimization may be removed in future versions; do not rely on it.
304304
///
305305
/// - Parameter index: A valid index of the array. On return, `index` is
306-
/// set to `limit` if
306+
/// set to the resulting position.
307307
/// - Parameter n: The distance to offset `index`.
308308
/// On return, `n` is set to zero if the operation succeeded without
309309
/// hitting the limit; otherwise, `n` reflects the number of steps that

Sources/BasicContainers/UniqueArray/UniqueArray+Container.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ extension UniqueArray where Element: ~Copyable {
264264
/// This optimization may be removed in future versions; do not rely on it.
265265
///
266266
/// - Parameter index: A valid index of the array. On return, `index` is
267-
/// set to `limit` if
267+
/// set to the resulting position.
268268
/// - Parameter n: The distance to offset `index`.
269269
/// On return, `n` is set to zero if the operation succeeded without
270270
/// hitting the limit; otherwise, `n` reflects the number of steps that

Sources/BasicContainers/UniqueArray/UniqueArray+Insertions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ extension UniqueArray where Element: ~Copyable {
281281

282282
@available(SwiftStdlib 5.0, *)
283283
extension UniqueArray {
284-
/// Copyies the elements of a fully initialized buffer pointer into this
284+
/// Copies the elements of a fully initialized buffer pointer into this
285285
/// array at the specified position.
286286
///
287287
/// The new elements are inserted before the element currently at the
@@ -311,7 +311,7 @@ extension UniqueArray {
311311
unsafe _storage.insert(copying: newElements, at: index)
312312
}
313313

314-
/// Copyies the elements of a fully initialized buffer pointer into this
314+
/// Copies the elements of a fully initialized buffer pointer into this
315315
/// array at the specified position.
316316
///
317317
/// The new elements are inserted before the element currently at the

0 commit comments

Comments
 (0)