[stdlib] Propagate ForwardIndexType docs to models

200 undocumented public APIs remain in core

Swift SVN r22222
This commit is contained in:
Dave Abrahams
2014-09-23 19:20:48 +00:00
parent b2d0ef6fef
commit c38e3201b2
11 changed files with 39 additions and 3 deletions

View File

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