mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[stdlib] Propagate ForwardIndexType docs to models
200 undocumented public APIs remain in core Swift SVN r22222
This commit is contained in:
@@ -19,8 +19,9 @@
|
||||
public enum Bit : Int, RandomAccessIndexType, Reflectable {
|
||||
case Zero = 0, One = 1
|
||||
|
||||
/// Return the next consecutive value in a discrete sequence of
|
||||
/// `Bit` values
|
||||
/// Returns the next consecutive value after `self`.
|
||||
///
|
||||
/// Requires: `self == .Zero`.
|
||||
public func successor() -> Bit {
|
||||
_precondition(self == .Zero, "Can't increment past one")
|
||||
return .One
|
||||
|
||||
Reference in New Issue
Block a user