Skip to content

Commit 49ed857

Browse files
[gardening] Use American English.
1 parent 6a52cfd commit 49ed857

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

benchmark/scripts/compare_perf_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def table(title, results, is_strong=False, is_open=False):
250250
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
251251
<style>
252252
body {{ font-family: -apple-system, sans-serif; font-size: 14px; }}
253-
table {{ border-spacing: 2px; border-color: grey; border-spacing: 0;
253+
table {{ border-spacing: 2px; border-color: gray; border-spacing: 0;
254254
border-collapse: collapse; }}
255255
table tr {{ background-color: #fff; border-top: 1px solid #c6cbd1; }}
256256
table th, table td {{ padding: 6px 13px; border: 1px solid #dfe2e5; }}

include/swift/AST/Expr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4858,7 +4858,7 @@ class KeyPathExpr : public Expr {
48584858
}
48594859
};
48604860

4861-
/// Represents the unusual behaviour of a . in a \ keypath expression, such as
4861+
/// Represents the unusual behavior of a . in a \ keypath expression, such as
48624862
/// \.[0] and \Foo.?.
48634863
class KeyPathDotExpr : public Expr {
48644864
SourceLoc DotLoc;

include/swift/Parse/Parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ class Parser {
11441144
bool isExprBasic);
11451145
ParserResult<Expr> parseExprPostfixSuffix(ParserResult<Expr> inner,
11461146
bool isExprBasic,
1147-
bool periodHasKeyPathBehaviour,
1147+
bool periodHasKeyPathBehavior,
11481148
bool &hasBindOptional);
11491149
ParserResult<Expr> parseExprPostfix(Diag<> ID, bool isExprBasic);
11501150
ParserResult<Expr> parseExprUnary(Diag<> ID, bool isExprBasic);

lib/Parse/ParseExpr.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,9 @@ ParserResult<Expr> Parser::parseExprKeyPath() {
552552
bool unusedHasBindOptional = false;
553553

554554
// Inside a keypath's path, the period always behaves normally: the key path
555-
// behaviour is only the separation between type and path.
555+
// behavior is only the separation between type and path.
556556
pathResult = parseExprPostfixSuffix(inner, /*isExprBasic=*/true,
557-
/*periodHasKeyPathBehaviour=*/false,
557+
/*periodHasKeyPathBehavior=*/false,
558558
unusedHasBindOptional);
559559
if (pathResult.isParseError() || pathResult.hasCodeCompletion())
560560
return pathResult;
@@ -1062,7 +1062,7 @@ static bool canParseTypeOf(Parser &P) {
10621062

10631063
ParserResult<Expr>
10641064
Parser::parseExprPostfixSuffix(ParserResult<Expr> Result, bool isExprBasic,
1065-
bool periodHasKeyPathBehaviour,
1065+
bool periodHasKeyPathBehavior,
10661066
bool &hasBindOptional) {
10671067
hasBindOptional = false;
10681068

@@ -1078,7 +1078,7 @@ Parser::parseExprPostfixSuffix(ParserResult<Expr> Result, bool isExprBasic,
10781078
// A key path is special, because it allows .[, unlike anywhere else. The
10791079
// period itself should be left in the token stream. (.? and .! end up
10801080
// being operators, and so aren't handled here.)
1081-
if (periodHasKeyPathBehaviour && peekToken().is(tok::l_square)) {
1081+
if (periodHasKeyPathBehavior && peekToken().is(tok::l_square)) {
10821082
break;
10831083
}
10841084

@@ -1259,7 +1259,7 @@ Parser::parseExprPostfixSuffix(ParserResult<Expr> Result, bool isExprBasic,
12591259
if (Tok.is(tok::oper_postfix)) {
12601260
// KeyPaths are more restricted in what can go after a ., and so we treat
12611261
// them specially.
1262-
if (periodHasKeyPathBehaviour && startsWithSymbol(Tok, '.'))
1262+
if (periodHasKeyPathBehavior && startsWithSymbol(Tok, '.'))
12631263
break;
12641264

12651265
Expr *oper = parseExprOperator();
@@ -1738,7 +1738,7 @@ ParserResult<Expr> Parser::parseExprPostfix(Diag<> ID, bool isExprBasic) {
17381738

17391739
bool hasBindOptional = false;
17401740
Result = parseExprPostfixSuffix(Result, isExprBasic,
1741-
/*periodHasKeyPathBehaviour=*/InSwiftKeyPath,
1741+
/*periodHasKeyPathBehavior=*/InSwiftKeyPath,
17421742
hasBindOptional);
17431743
if (Result.isParseError() || Result.hasCodeCompletion())
17441744
return Result;

test/stdlib/TestDecimal.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ class TestDecimal : TestDecimalSuper {
420420
expectEqual(0, result._isNegative, "0 * -1")
421421
}
422422

423-
func test_Normalise() {
423+
func test_Normalize() {
424424
var one = Decimal(1)
425425
var ten = Decimal(-10)
426426
expectEqual(.noError, NSDecimalNormalize(&one, &ten, .plain))
@@ -598,7 +598,7 @@ DecimalTests.test("test_Misc") { TestDecimal().test_Misc() }
598598
DecimalTests.test("test_MultiplicationOverflow") { TestDecimal().test_MultiplicationOverflow() }
599599
DecimalTests.test("test_NaNInput") { TestDecimal().test_NaNInput() }
600600
DecimalTests.test("test_NegativeAndZeroMultiplication") { TestDecimal().test_NegativeAndZeroMultiplication() }
601-
DecimalTests.test("test_Normalise") { TestDecimal().test_Normalise() }
601+
DecimalTests.test("test_Normalize") { TestDecimal().test_Normalize() }
602602
DecimalTests.test("test_NSDecimal") { TestDecimal().test_NSDecimal() }
603603
DecimalTests.test("test_RepeatingDivision") { TestDecimal().test_RepeatingDivision() }
604604
DecimalTests.test("test_Round") { TestDecimal().test_Round() }

tools/SourceKit/docs/Protocol.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ To gather documentation, SourceKit must be given either the name of a module (ke
637637
// these must include the path to that file.
638638
[opt] <key.cancel_on_subsequent_request>: (int64) // Whether this request should be canceled if a
639639
// new cursor-info request is made that uses the same AST.
640-
// This behaviour is a workaround for not having first-class
640+
// This behavior is a workaround for not having first-class
641641
// cancelation. For backwards compatibility, the default is 1.
642642
}
643643
```

0 commit comments

Comments
 (0)