Skip to content

Commit 223d8d6

Browse files
[gardening] Use "\"" instead of "“" or "”".
1 parent dcab7e7 commit 223d8d6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

stdlib/public/SDK/Foundation/CharacterSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public struct CharacterSet : ReferenceConvertible, Equatable, Hashable, SetAlgeb
182182
return CharacterSet(reference: NSCharacterSet.alphanumerics() as NSCharacterSet)
183183
}
184184

185-
/// Returns a character set containing individual Unicode characters that can also be represented as composed character sequences (such as for letters with accents), by the definition of standard decomposition in version 3.2 of the Unicode character encoding standard.
185+
/// Returns a character set containing individual Unicode characters that can also be represented as composed character sequences (such as for letters with accents), by the definition of "standard decomposition" in version 3.2 of the Unicode character encoding standard.
186186
public static var decomposables : CharacterSet {
187187
return CharacterSet(reference: NSCharacterSet.decomposables() as NSCharacterSet)
188188
}

stdlib/public/SDK/Foundation/Date.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public struct Date : ReferenceConvertible, Comparable, Equatable, CustomStringCo
179179

180180
- Parameter locale: A `Locale` object. If you pass `nil`, `NSDate` formats the date in the same way as the `description` property.
181181

182-
- Returns: A string representation of the receiver, using the given locale, or if the locale argument is `nil`, in the international format `YYYY-MM-DD HH:MM:SS ±HHMM`, where `±HHMM` represents the time zone offset in hours and minutes from UTC (for example, `2001-03-24 10:45:32 +0600`)
182+
- Returns: A string representation of the receiver, using the given locale, or if the locale argument is `nil`, in the international format `YYYY-MM-DD HH:MM:SS ±HHMM`, where `±HHMM` represents the time zone offset in hours and minutes from UTC (for example, "`2001-03-24 10:45:32 +0600`")
183183
*/
184184
public func description(with locale : Locale?) -> String {
185185
return NSDate(timeIntervalSinceReferenceDate: _time).description(with: locale)

stdlib/public/SDK/Foundation/URL.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public struct URLResourceValues {
275275

276276
/// The document identifier -- a value assigned by the kernel to a document (which can be either a file or directory) and is used to identify the document regardless of where it gets moved on a volume.
277277
///
278-
/// The document identifier survives "safe save operations; i.e it is sticky to the path it was assigned to (`replaceItem(at:,withItemAt:,backupItemName:,options:,resultingItem:) throws` is the preferred safe-save API). The document identifier is persistent across system restarts. The document identifier is not transferred when the file is copied. Document identifiers are only unique within a single volume. This property is not supported by all volumes.
278+
/// The document identifier survives "safe save" operations; i.e it is sticky to the path it was assigned to (`replaceItem(at:,withItemAt:,backupItemName:,options:,resultingItem:) throws` is the preferred safe-save API). The document identifier is persistent across system restarts. The document identifier is not transferred when the file is copied. Document identifiers are only unique within a single volume. This property is not supported by all volumes.
279279
@available(OSX 10.10, iOS 8.0, *)
280280
public var documentIdentifier: Int? { return _get(.documentIdentifierKey) }
281281

@@ -716,7 +716,7 @@ public struct URL : ReferenceConvertible, CustomStringConvertible, Equatable {
716716
* a percent-encoded string of the new path component could not created using the same encoding as the URL's string. (see note 2)
717717
* a new URL object could not be created with the modified URL string.
718718

719-
Note 1: If NS/CFURL parsed URLs correctly, this would not occur because URL strings always have a path component. For example, the URL <mailto:[email protected]> should be parsed as Scheme=mailto, and Path= [email protected]". Instead, CFURL returns false for CFURLCanBeDecomposed(), says Scheme=mailto, Path=nil, and ResourceSpecifier=[email protected]. rdar://problem/15060399
719+
Note 1: If NS/CFURL parsed URLs correctly, this would not occur because URL strings always have a path component. For example, the URL <mailto:[email protected]> should be parsed as Scheme="mailto", and Path= "[email protected]". Instead, CFURL returns false for CFURLCanBeDecomposed(), says Scheme="mailto", Path=nil, and ResourceSpecifier="[email protected]". rdar://problem/15060399
720720

721721
Note 2: CFURLCreateWithBytes() and CFURLCreateAbsoluteURLWithBytes() allow URLs to be created with an array of bytes and a CFStringEncoding. All other CFURL functions and URL methods which create URLs use kCFStringEncodingUTF8/NSUTF8StringEncoding. So, the encoding passed to CFURLCreateWithBytes/CFURLCreateAbsoluteURLWithBytes might prevent the percent-encoding of the new path component or path extension.
722722
*/

0 commit comments

Comments
 (0)