Skip to content

Commit 1a08dc8

Browse files
committed
Fix a few documentation errors in struct Locale
1 parent 0e3740c commit 1a08dc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/SDK/Foundation/Locale.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public struct Locale : Hashable, Equatable, ReferenceConvertible {
8080

8181
/// Returns a localized string for a specified identifier.
8282
///
83-
/// For example, in the "en" locale, the result for `"en"` is `"Spanish"`.
83+
/// For example, in the "en" locale, the result for `"es"` is `"Spanish"`.
8484
public func localizedString(forIdentifier identifier: String) -> String? {
8585
return _wrapped.displayName(forKey: .identifier, value: identifier)
8686
}
@@ -94,7 +94,7 @@ public struct Locale : Hashable, Equatable, ReferenceConvertible {
9494

9595
/// Returns a localized string for a specified region code.
9696
///
97-
/// For example, in the "en" locale, the result for `"fr"` is `"French"`.
97+
/// For example, in the "en" locale, the result for `"fr"` is `"France"`.
9898
public func localizedString(forRegionCode regionCode: String) -> String? {
9999
return _wrapped.displayName(forKey: .countryCode, value: regionCode)
100100
}

0 commit comments

Comments
 (0)