Skip to content

Commit e1e33b9

Browse files
committed
Fixes example snippets in CharacterProperties.swift
1 parent 041dfb9 commit e1e33b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/CharacterProperties.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extension Character {
3232
///
3333
/// let chars: [Character] = ["a", " ", "™"]
3434
/// for ch in chars {
35-
/// print(ch, "-->", ch.properties.numericValue)
35+
/// print(ch, "-->", ch.asciiValue)
3636
/// }
3737
/// // a --> 97
3838
/// // --> 32
@@ -125,7 +125,7 @@ extension Character {
125125
///
126126
/// let chars: [Character] = ["4", "④", "万", "a"]
127127
/// for ch in chars {
128-
/// print(ch, "-->", ch.properties.numericValue)
128+
/// print(ch, "-->", ch.wholeNumberValue)
129129
/// }
130130
/// // 4 --> 4
131131
/// // ④ --> 4

0 commit comments

Comments
 (0)