Skip to content

[Documentation] Add missing 'of' to UnicodeScalar documentation. #9771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions stdlib/public/core/UnicodeScalar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ extension Unicode.Scalar :
self._value = v
return
}
// Return nil in case of invalid unicode scalar value.
// Return nil in case of an invalid unicode scalar value.
return nil
}

Expand All @@ -122,7 +122,7 @@ extension Unicode.Scalar :
/// print(bap!)
/// // Prints "밥"
///
/// In case an invalid input value, nil is returned.
/// In case of an invalid input value, nil is returned.
///
/// let codepoint: UInt32 = extValue // This might be an invalid value.
/// if let bap = Unicode.Scalar(codepoint) {
Expand Down Expand Up @@ -321,7 +321,7 @@ extension Unicode.Scalar {
/// print(emoji)
/// // Prints "🎉"
///
/// In case an invalid input value, nil is returned.
/// In case of an invalid input value, nil is returned.
///
/// let codepoint: UInt32 = extValue // This might be an invalid value.
/// if let emoji = Unicode.Scalar(codepoint) {
Expand Down