We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 81a3c1e + 8912098 commit b158328Copy full SHA for b158328
stdlib/public/core/Substring.swift
@@ -778,7 +778,7 @@ extension String {
778
/// If `codeUnits` is an ill-formed code unit sequence, the result is `nil`.
779
///
780
/// - Complexity: O(N), where N is the length of the resulting `String`'s
781
- /// UTF-16.
+ /// UTF-8 representation.
782
public init?(_ codeUnits: Substring.UTF8View) {
783
let guts = codeUnits._wholeGuts
784
guard guts.isOnUnicodeScalarBoundary(codeUnits.startIndex),
0 commit comments