mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
Merge pull request #807 from SwastikTripathi/docs-examples
Fix doc comment examples in OrderedDictionary, BitArray and SortedDictionary
This commit is contained in:
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