mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Clean up various documentation issues (#3804)
* [stdlib] Clean up some documentation formatting * [stdlib] Update example code for SE-0103 * [stdlib] Fix UnsafeBufferPointer documentation typo * [stdlib] Collection documentation cleanup * [stdlib] Fix String.init?(_:UTF16View) description * [stdlib] Documentation fixes for SE-0091 * [stdlib] Add param info for String(repeating:count:)
This commit is contained in:
@@ -343,7 +343,7 @@ public typealias AnyClass = AnyObject.Type
|
||||
/// let z = x | y // 0b00001111
|
||||
///
|
||||
/// Performing a bitwise OR operation with a value and `allZeros` always
|
||||
/// returns the same value.
|
||||
/// returns the same value.
|
||||
///
|
||||
/// print(x | .allZeros) // 0b00000101
|
||||
/// // Prints "5"
|
||||
@@ -357,7 +357,7 @@ public typealias AnyClass = AnyObject.Type
|
||||
/// let z = x & y // 0b00000100
|
||||
///
|
||||
/// Performing a bitwise AND operation with a value and `allZeros` always
|
||||
/// returns `allZeros`.
|
||||
/// returns `allZeros`.
|
||||
///
|
||||
/// print(x & .allZeros) // 0b00000000
|
||||
/// // Prints "0"
|
||||
@@ -372,7 +372,7 @@ public typealias AnyClass = AnyObject.Type
|
||||
/// let z = x ^ y // 0b00001011
|
||||
///
|
||||
/// Performing a bitwise XOR operation with a value and `allZeros` always
|
||||
/// returns the same value.
|
||||
/// returns the same value.
|
||||
///
|
||||
/// print(x ^ .allZeros) // 0b00000101
|
||||
/// // Prints "5"
|
||||
|
||||
Reference in New Issue
Block a user