[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:
Nate Cook
2016-07-28 13:25:38 -05:00
committed by Ted Kremenek
parent 48c450eec1
commit 58fb4ef9c5
11 changed files with 83 additions and 105 deletions

View File

@@ -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"