mirror of
https://github.com/apple/swift-collections
synced 2026-11-30 05:18:44 +00:00
Fix doc comment examples in OrderedDictionary, BitArray and SortedDictionary
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f96b909e1a
commit
8da3cafe2e
3 files changed
+10
-10
No files matched your search
@@ -344,12 +344,12 @@ extension BitArray {
|
||||
/// the `index` parameter, then the new element is appended to the
|
||||
/// collection.
|
||||
///
|
||||
/// var bits = [false, true, true, false, true]
|
||||
/// var bits: BitArray = [false, true, true, false, true]
|
||||
/// bits.insert(true, at: 3)
|
||||
/// bits.insert(false, at: numbers.endIndex)
|
||||
/// bits.insert(false, at: bits.endIndex)
|
||||
///
|
||||
/// print(bits)
|
||||
/// // Prints "[false, true, true, true, false, true, false]"
|
||||
/// // Prints "<0101110>"
|
||||
///
|
||||
/// - Parameter newElement: The new element to insert into the bit array.
|
||||
/// - Parameter i: The position at which to insert the new element.
|
||||
|
||||
Reference in new issue
Block a user