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 f804efd + 64c32f3 commit 7039277Copy full SHA for 7039277
stdlib/public/core/CString.swift
@@ -52,8 +52,8 @@ extension String {
52
/// Creates a new string by copying the null-terminated UTF-8 data referenced
53
/// by the given pointer.
54
///
55
- /// This is identical to init(cString: UnsafePointer<CChar> but operates on an
56
- /// unsigned sequence of bytes.
+ /// This is identical to `init(cString: UnsafePointer<CChar>)` but operates on
+ /// an unsigned sequence of bytes.
57
public init(cString: UnsafePointer<UInt8>) {
58
let len = UTF8._nullCodeUnitOffset(in: cString)
59
self = String._fromUTF8Repairing(
0 commit comments