Skip to content

Commit b158328

Browse files
authored
Merge pull request #67271 from glessard/string-init-from-substring-utf8view
[doc] adjust to reflect the current implementation.
2 parents 81a3c1e + 8912098 commit b158328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/Substring.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ extension String {
778778
/// If `codeUnits` is an ill-formed code unit sequence, the result is `nil`.
779779
///
780780
/// - Complexity: O(N), where N is the length of the resulting `String`'s
781-
/// UTF-16.
781+
/// UTF-8 representation.
782782
public init?(_ codeUnits: Substring.UTF8View) {
783783
let guts = codeUnits._wholeGuts
784784
guard guts.isOnUnicodeScalarBoundary(codeUnits.startIndex),

0 commit comments

Comments
 (0)