@@ -182,9 +182,8 @@ extension String {
182182 ///
183183 /// Contiguous strings always operate in O(1) time for withUTF8, always give
184184 /// 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`.
186186 /// Contiguous strings also benefit from fast-paths and better optimizations.
187- ///
188187 @_alwaysEmitIntoClient
189188 public var isContiguousUTF8 : Bool {
190189 if _guts. isFastUTF8 {
@@ -236,13 +235,14 @@ extension String {
236235
237236// Contiguous UTF-8 strings
238237extension 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.
241240 ///
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`.
244245 /// Contiguous strings also benefit from fast-paths and better optimizations.
245- ///
246246 @_alwaysEmitIntoClient
247247 public var isContiguousUTF8 : Bool { return self . base. isContiguousUTF8 }
248248
0 commit comments