@@ -182,9 +182,8 @@ extension String {
182
182
///
183
183
/// Contiguous strings always operate in O(1) time for withUTF8, always give
184
184
/// a result for String.UTF8View.withContiguousStorageIfAvailable, and always
185
- /// return a non-nil value from `String._utf8Span` and `String.utf8 ._span`.
185
+ /// return a non-nil value from `String._utf8Span` and `String.UTF8View ._span`.
186
186
/// Contiguous strings also benefit from fast-paths and better optimizations.
187
- ///
188
187
@_alwaysEmitIntoClient
189
188
public var isContiguousUTF8 : Bool {
190
189
if _guts. isFastUTF8 {
@@ -236,13 +235,14 @@ extension String {
236
235
237
236
// Contiguous UTF-8 strings
238
237
extension Substring {
239
- /// Returns whether this string is capable of providing access to
240
- /// validly-encoded UTF-8 contents in contiguous memory in O(1) time .
238
+ /// Returns whether this string's storage contains
239
+ /// validly-encoded UTF-8 contents in contiguous memory.
241
240
///
242
- /// Contiguous strings always operate in O(1) time for withUTF8 and always
243
- /// give a result for String.UTF8View.withContiguousStorageIfAvailable.
241
+ /// Contiguous strings always operate in O(1) time for withUTF8, always give
242
+ /// a result for Substring.UTF8View.withContiguousStorageIfAvailable, and
243
+ /// always return a non-nil value from `Substring._utf8Span` and
244
+ /// `Substring.UTF8View._span`.
244
245
/// Contiguous strings also benefit from fast-paths and better optimizations.
245
- ///
246
246
@_alwaysEmitIntoClient
247
247
public var isContiguousUTF8 : Bool { return self . base. isContiguousUTF8 }
248
248
0 commit comments