Skip to content

Commit 7a7efeb

Browse files
author
rajkumarpunchh
committed
Fixed Typo. “forumula” to “formula”.
1 parent 1171ed7 commit 7a7efeb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/Arrays.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ public func += <
10311031
/// Create a unique mutable buffer that has enough capacity to hold 'newCount'
10321032
/// elements and at least 'requiredCapacity' elements. Set the count of the new
10331033
/// buffer to 'newCount'. The content of the buffer is uninitialized.
1034-
/// The forumula used to compute the new buffers capacity is:
1034+
/// The formula used to compute the new buffers capacity is:
10351035
/// max(requiredCapacity, source.capacity) if newCount <= source.capacity
10361036
/// max(requiredCapacity, _growArrayCapacity(source.capacity)) otherwise
10371037
@inline(never)
@@ -1046,7 +1046,7 @@ internal func _forceCreateUniqueMutableBuffer<_Buffer : _ArrayBufferType>(
10461046
/// Create a unique mutable buffer that has enough capacity to hold
10471047
/// 'minNewCapacity' elements and set the count of the new buffer to
10481048
/// 'countForNewBuffer'. The content of the buffer uninitialized.
1049-
/// The forumula used to compute the new buffers capacity is:
1049+
/// The formula used to compute the new buffers capacity is:
10501050
/// max(minNewCapacity, source.capacity) if minNewCapacity <= source.capacity
10511051
/// max(minNewCapacity, _growArrayCapacity(source.capacity)) otherwise
10521052
@inline(never)

0 commit comments

Comments
 (0)