Skip to content

Commit e424982

Browse files
committed
stdlib: Dictionary: attach a comment directly to the method
1 parent 1c09782 commit e424982

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stdlib/public/core/HashedCollections.swift.gyb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2560,12 +2560,11 @@ final internal class _Native${Self}StorageImpl<${TypeParameters}> :
25602560
return strideof(Key.self) * capacity + padding
25612561
}
25622562

2563+
%if Self == 'Dictionary':
25632564
/// Returns the bytes necessary to store 'capacity' values and padding to
25642565
/// align the start to the alignment of the 'Value' type assuming a base
25652566
/// address aligned to the maximum of the alignment of the 'Key' type and the
25662567
/// alignment of a word.
2567-
2568-
%if Self == 'Dictionary':
25692568
internal static func bytesForValues(capacity: Int) -> Int {
25702569
let maxPrevAlignment = max(alignof(Key.self), alignof(UInt))
25712570
let padding = max(0, alignof(Value.self) - maxPrevAlignment)

0 commit comments

Comments
 (0)