Skip to content

Commit 8912098

Browse files
committed
[doc] adjust to reflect the current implementation.
1 parent 6b21a94 commit 8912098

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)