Skip to content

Commit aa199aa

Browse files
committed
Correct misspelling of "availability" in a few places.
1 parent 47b0e91 commit aa199aa

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

include/swift/AST/ASTContext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ class ASTContext final {
909909
AvailabilityRange getSwiftAvailability(unsigned major, unsigned minor) const;
910910

911911
// For each feature defined in FeatureAvailability, define two functions;
912-
// the latter, with the suffix RuntimeAvailabilty, is for use with
912+
// the latter, with the suffix RuntimeAvailability, is for use with
913913
// AvailabilityRange::forRuntimeTarget(), and only looks at the Swift
914914
// runtime version.
915915
#define FEATURE(N, V) \

lib/AST/AvailabilityScopeBuilder.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class AvailabilityScopeBuilder : private ASTWalker {
126126
}
127127

128128
const char *stackTraceAction() const {
129-
return "building availabilty scope for";
129+
return "building availability scope for";
130130
}
131131

132132
friend class swift::ExpandChildAvailabilityScopesRequest;
@@ -415,7 +415,7 @@ class AvailabilityScopeBuilder : private ASTWalker {
415415
// As a special case, extension decls are treated as effectively as
416416
// available as the nominal type they extend, up to the deployment target.
417417
// This rule is a convenience for library authors who have written
418-
// extensions without specifying platform availabilty on the extension
418+
// extensions without specifying platform availability on the extension
419419
// itself.
420420
if (auto *extension = dyn_cast<ExtensionDecl>(decl)) {
421421
auto extendedType = extension->getExtendedType();

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9746,7 +9746,7 @@ void ClangImporter::Implementation::importAttributes(
97469746
declContext->lookupAvailabilityDomains(domainIdentifier, results);
97479747

97489748
if (results.size() > 0) {
9749-
// FIXME: [availability] Diagnose ambiguous availabilty domain name?
9749+
// FIXME: [availability] Diagnose ambiguous availability domain name?
97509750
auto AttrKind = avail->getUnavailable()
97519751
? AvailableAttr::Kind::Unavailable
97529752
: AvailableAttr::Kind::Default;

lib/SILGen/SILGenAvailability.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ SILGenFunction::emitIfAvailableQuery(SILLocation loc,
267267

268268
// The query may not have been computed by Sema under the following
269269
// conditions:
270-
// - Availability checking was disabled (-disable-availabilty-checking).
270+
// - Availability checking was disabled (-disable-availability-checking).
271271
// - The query was marked invalid in the AST for a non-fatal reason.
272272
//
273273
// Otherwise, there's a bug in Sema.

0 commit comments

Comments
 (0)