Skip to content

Commit 1e9bc9f

Browse files
authored
Fixes example snippets in UnicodeScalarProperties.swift (#31514)
1 parent 9ae451d commit 1e9bc9f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: stdlib/public/core/UnicodeScalarProperties.swift

+7-7
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ extension Unicode.Scalar.Properties {
606606
///
607607
/// let scalars: [Unicode.Scalar] = ["😎", "$", "0"]
608608
/// for s in scalars {
609-
/// print(s, "-->", s.isEmoji)
609+
/// print(s, "-->", s.properties.isEmoji)
610610
/// }
611611
/// // 😎 --> true
612612
/// // $ --> false
@@ -1365,9 +1365,9 @@ extension Unicode.Scalar.Properties {
13651365
/// for scalar in scalars {
13661366
/// print(scalar, "-->", scalar.properties.numericType)
13671367
/// }
1368-
/// // 4 --> decimal
1369-
/// // ④ --> digit
1370-
/// // ⅕ --> numeric
1368+
/// // 4 --> Optional(Swift.Unicode.NumericType.decimal)
1369+
/// // ④ --> Optional(Swift.Unicode.NumericType.digit)
1370+
/// // ⅕ --> Optional(Swift.Unicode.NumericType.numeric)
13711371
/// // X --> nil
13721372
///
13731373
/// This property corresponds to the "Numeric_Type" property in the
@@ -1389,9 +1389,9 @@ extension Unicode.Scalar.Properties {
13891389
/// for scalar in scalars {
13901390
/// print(scalar, "-->", scalar.properties.numericValue)
13911391
/// }
1392-
/// // 4 --> 4.0
1393-
/// // ④ --> 4.0
1394-
/// // ⅕ --> 0.2
1392+
/// // 4 --> Optional(4.0)
1393+
/// // ④ --> Optional(4.0)
1394+
/// // ⅕ --> Optional(0.2)
13951395
/// // X --> nil
13961396
///
13971397
/// This property corresponds to the "Numeric_Value" property in the [Unicode

0 commit comments

Comments
 (0)