[stdlib] Add a comment

Swift SVN r23948
This commit is contained in:
Dave Abrahams
2014-12-15 22:24:30 +00:00
parent 7b54835278
commit 39efbb5e17

View File

@@ -10,6 +10,9 @@
//
//===----------------------------------------------------------------------===//
// Random access for String.UTF16View, only when Foundation is
// imported. Making this API dependent on Foundation decouples the
// Swift core from a UTF16 representation.
extension String.UTF16View.Index : RandomAccessIndexType {
public func distanceTo(x: String.UTF16View.Index) -> Int {
return x._offset - _offset