Skip to content

Commit 92d932d

Browse files
authored
Merge pull request #4811 from apple/stdlib-doc-fixes
stdlib: remove preconditions that are always true
2 parents dd7ae44 + 2de0350 commit 92d932d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

stdlib/public/core/UnicodeScalar.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -346,16 +346,12 @@ extension UInt8 {
346346
}
347347
extension UInt32 {
348348
/// Construct with value `v.value`.
349-
///
350-
/// - Precondition: `v.value` can be represented as UInt32.
351349
public init(_ v: UnicodeScalar) {
352350
self = v.value
353351
}
354352
}
355353
extension UInt64 {
356354
/// Construct with value `v.value`.
357-
///
358-
/// - Precondition: `v.value` can be represented as UInt64.
359355
public init(_ v: UnicodeScalar) {
360356
self = UInt64(v.value)
361357
}

0 commit comments

Comments
 (0)