mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] Propagate GeneratorType docs to models
Swift SVN r22208
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user