Fix doc comment examples in OrderedDictionary, BitArray and SortedDictionary

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Swastik TripathiandClaude Opus 5.5 committed 2026-10-30 09:04:13 +05:30
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.