Skip to content

Commit dea6dd1

Browse files
authored
Merge pull request #3729 from practicalswift/a-vs-an-fixes-ii
[gardening] "a" vs. "an"-fixes
2 parents 00934a7 + 5c916c0 commit dea6dd1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

include/swift/SILOptimizer/Analysis/ARCAnalysis.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ SILInstruction *findReleaseToMatchUnsafeGuaranteedValue(
393393

394394
namespace swift {
395395

396-
/// EpilogueARCBlockState - Keep track of whether a epilogue ARC instruction has
397-
/// been found.
396+
/// EpilogueARCBlockState - Keep track of whether an epilogue ARC instruction
397+
/// has been found.
398398
struct EpilogueARCBlockState {
399399
/// Keep track of whether a eplogue release has been found before and after
400400
/// this basic block.

lib/Sema/CSDiag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2438,7 +2438,7 @@ diagnoseUnviableLookupResults(MemberLookupResult &result, Type baseObjTy,
24382438

24392439
// See through function decl context
24402440
if (auto parent = CS->DC->getParent())
2441-
// If we are in an protocol extension of 'Proto' and we see
2441+
// If we are in a protocol extension of 'Proto' and we see
24422442
// 'Proto.static', suggest 'Self.static'
24432443
if (auto extensionContext = parent->getAsProtocolExtensionContext()) {
24442444
if (extensionContext->getDeclaredType()->getCanonicalType()

stdlib/public/SDK/Foundation/TimeZone.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public struct TimeZone : CustomStringConvertible, CustomDebugStringConvertible,
9090
/// In general, you are discouraged from using abbreviations except for unique instances such as "GMT". Time Zone abbreviations are not standardized and so a given abbreviation may have multiple meanings—for example, "EST" refers to Eastern Time in both the United States and Australia
9191
///
9292
/// - parameter abbreviation: The abbreviation for the time zone.
93-
/// - returns: A time zone identified by abbreviation determined by resolving the abbreviation to a identifier using the abbreviation dictionary and then returning the time zone for that identifier. Returns `nil` if there is no match for abbreviation.
93+
/// - returns: A time zone identified by abbreviation determined by resolving the abbreviation to an identifier using the abbreviation dictionary and then returning the time zone for that identifier. Returns `nil` if there is no match for abbreviation.
9494
public init?(abbreviation: String) {
9595
if let r = NSTimeZone(abbreviation: abbreviation) {
9696
_wrapped = r

stdlib/public/SDK/Foundation/URL.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ public struct URL : ReferenceConvertible, CustomStringConvertible, Equatable {
561561
bookmarkDataIsStale = stale.boolValue
562562
}
563563

564-
/// Creates and initializes a NSURL that refers to the location specified by resolving the alias file at url. If the url argument does not refer to an alias file as defined by the NSURLIsAliasFileKey property, the NSURL returned is the same as url argument. This method fails and returns nil if the url argument is unreachable, or if the original file or directory could not be located or is not reachable, or if the original file or directory is on a volume that could not be located or mounted. The URLBookmarkResolutionWithSecurityScope option is not supported by this method.
564+
/// Creates and initializes an NSURL that refers to the location specified by resolving the alias file at url. If the url argument does not refer to an alias file as defined by the NSURLIsAliasFileKey property, the NSURL returned is the same as url argument. This method fails and returns nil if the url argument is unreachable, or if the original file or directory could not be located or is not reachable, or if the original file or directory is on a volume that could not be located or mounted. The URLBookmarkResolutionWithSecurityScope option is not supported by this method.
565565
@available(OSX 10.10, iOS 8.0, *)
566566
public init(resolvingAliasFileAt url: URL, options: BookmarkResolutionOptions = []) throws {
567567
self.init(reference: try NSURL(resolvingAliasFileAt: url, options: options))
@@ -1085,7 +1085,7 @@ public struct URL : ReferenceConvertible, CustomStringConvertible, Equatable {
10851085
return result as Data
10861086
}
10871087

1088-
/// Given a NSURL created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process. When access to this resource is no longer needed the client must call stopAccessingSecurityScopedResource. Each call to startAccessingSecurityScopedResource must be balanced with a call to stopAccessingSecurityScopedResource (Note: this is not reference counted).
1088+
/// Given an NSURL created by resolving a bookmark data created with security scope, make the resource referenced by the url accessible to the process. When access to this resource is no longer needed the client must call stopAccessingSecurityScopedResource. Each call to startAccessingSecurityScopedResource must be balanced with a call to stopAccessingSecurityScopedResource (Note: this is not reference counted).
10891089
@available(OSX 10.7, iOS 8.0, *)
10901090
public func startAccessingSecurityScopedResource() -> Bool {
10911091
return _url.startAccessingSecurityScopedResource()

0 commit comments

Comments
 (0)