[stdlib] Propagate GeneratorType docs to models

Swift SVN r22208
This commit is contained in:
Dave Abrahams
2014-09-23 09:47:26 +00:00
parent d4de1bf5e9
commit 76f9313088
15 changed files with 77 additions and 7 deletions

View File

@@ -125,6 +125,11 @@ extension String {
self._base = _base
}
/// Advance to the next element and return it, or `nil` if no next
/// element exists.
///
/// Requires: no preceding call to `self.next()` has returned
/// `nil`.
public mutating func next() -> UnicodeScalar? {
switch _decoder.decode(&self._base) {
case .Result(let us):