Skip to content

Commit 7b2f91a

Browse files
authored
The _decodeCString helper does not need to be public. (#3726)
1 parent a6edf8b commit 7b2f91a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/core/CString.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public func _persistCString(_ p: UnsafePointer<CChar>?) -> [CChar]? {
180180
/// the given pointer using the specified encoding.
181181
///
182182
/// This internal helper takes the string length as an argument.
183-
public func _decodeCString<Encoding : UnicodeCodec>(
183+
func _decodeCString<Encoding : UnicodeCodec>(
184184
_ cString: UnsafePointer<Encoding.CodeUnit>,
185185
as encoding: Encoding.Type, length: Int,
186186
repairingInvalidCodeUnits isRepairing: Bool = true)

0 commit comments

Comments
 (0)