Skip to content

Commit 0d53831

Browse files
Merge pull request #80412 from AnthonyLatsis/alces-alces
AST: Fix typo in descriptive decl kind string
2 parents 1019380 + 0aeea98 commit 0d53831

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ StringRef Decl::getDescriptiveKindName(DescriptiveDeclKind K) {
385385
ENTRY(MutableAddressor, "mutableAddress accessor");
386386
ENTRY(ReadAccessor, "_read accessor");
387387
ENTRY(ModifyAccessor, "_modify accessor");
388-
ENTRY(InitAccessor, "init acecssor");
388+
ENTRY(InitAccessor, "init accessor");
389389
ENTRY(EnumElement, "enum case");
390390
ENTRY(Module, "module");
391391
ENTRY(Missing, "missing decl");

test/attr/attr_alwaysEmitIntoClient.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public struct TestInitAccessors {
2222

2323
public var x: Int {
2424
@storageRestrictions(initializes: _x)
25-
init { // expected-note 2 {{init acecssor for property 'x' is not '@usableFromInline' or public}}
25+
init { // expected-note 2 {{init accessor for property 'x' is not '@usableFromInline' or public}}
2626
self._x = newValue
2727
}
2828

@@ -35,11 +35,11 @@ public struct TestInitAccessors {
3535

3636
@_alwaysEmitIntoClient
3737
public init(x: Int) {
38-
self.x = 0 // expected-error {{init acecssor for property 'x' is internal and cannot be referenced from an '@_alwaysEmitIntoClient' function}}
38+
self.x = 0 // expected-error {{init accessor for property 'x' is internal and cannot be referenced from an '@_alwaysEmitIntoClient' function}}
3939
}
4040

4141
@inlinable
4242
public init() {
43-
self.x = 0 // expected-error {{init acecssor for property 'x' is internal and cannot be referenced from an '@inlinable' function}}
43+
self.x = 0 // expected-error {{init accessor for property 'x' is internal and cannot be referenced from an '@inlinable' function}}
4444
}
4545
}

0 commit comments

Comments
 (0)