Skip to content

Commit ef9c227

Browse files
authored
Correct some spelling mistakes (#3141)
* Correct spelling mistakes * Correct spelling mistakes in annotations * Correct spelling mistakes in annotations * Revert "Correct spelling mistakes in annotations" This reverts commit 2a510e3. * Fix incorrect modifications
1 parent ad44d33 commit ef9c227

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Tests/Foundation/Tests/TestAttributedStringSupport.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ extension AttributeScopes.TestAttributes {
5959

6060
enum TestForegroundColorAttribute: CodableAttributedStringKey, MarkdownDecodableAttributedStringKey {
6161
typealias Value = Color
62-
static let name = "ForgroundColor"
62+
static let name = "ForegroundColor"
6363
}
6464

6565
enum TestBackgroundColorAttribute: CodableAttributedStringKey, MarkdownDecodableAttributedStringKey {

Tests/Foundation/Tests/TestDateFormatter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ class TestDateFormatter: XCTestCase {
459459
let parsed = formatter.date(from: "令和1年5月1日 23:10")
460460
XCTAssertEqual(parsed?.timeIntervalSince1970, 1556719800) // May 1st, 2019, 11:10 PM (JST)
461461

462-
// Test for 元年(Gannen) representaion of 1st year
462+
// Test for 元年(Gannen) representation of 1st year
463463
let parsedAlt = formatter.date(from: "令和元年5月1日 23:10")
464464
XCTAssertEqual(parsedAlt?.timeIntervalSince1970, 1556719800) // May 1st, 2019, 11:10 PM (JST)
465465

Tests/Foundation/Tests/TestFileManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,7 +1505,7 @@ VIDEOS=StopgapVideos
15051505

15061506
// Some of these tests will throw an NSException on Darwin which would be normally be
15071507
// modelled by a fatalError() or other hard failure, however since most of these functions
1508-
// are thorwable, an NSError is thrown instead which is more useful.
1508+
// are throwable, an NSError is thrown instead which is more useful.
15091509
let fm = FileManager.default
15101510

15111511
XCTAssertNil(fm.homeDirectory(forUser: ""))

Tests/Foundation/Tests/TestNSData.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ class TestNSData: LoopbackServerTest {
570570
}
571571

572572
#if !os(Windows)
573-
// NOTE: `umask(3)` is process global. Therefore, the behavior is unknown if `withUmask(_:_:)` is used simultaniously.
573+
// NOTE: `umask(3)` is process global. Therefore, the behavior is unknown if `withUmask(_:_:)` is used simultaneously.
574574
private func withUmask(_ mode: mode_t, _ block: () -> Void) {
575575
let original = umask(mode)
576576
block()

Tests/Foundation/Tests/TestOperationQueue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ class TestOperationQueue : XCTestCase {
655655
op3DidRun.fulfill()
656656
}
657657

658-
// Create debendency cycle
658+
// Create dependency cycle
659659
op1.addDependency(op2)
660660
op2.addDependency(op3)
661661
op3.addDependency(op1)

Tests/Foundation/Tests/TestURLProtectionSpace.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class TestURLProtectionSpace : XCTestCase {
155155
XCTAssertEqual(param1_1_3.name, "other")
156156
XCTAssertEqual(param1_1_3.value, "be2e96ad8ab8acb7ccfb49bc7e162914")
157157

158-
// Several chalenges, but only two of them should be valid
158+
// Several challenges, but only two of them should be valid
159159
let challenges2 = _HTTPURLProtocol._HTTPMessage._Challenge.challenges(from: "Digest realm=\"Unsupported\", Basic, basic realm = \"First \\\" realm\", Basic realm=\"Second realm\"")
160160
XCTAssertEqual(challenges2.count, 2, "String contains 2 valid challenges")
161161
let challenge2_1 = try XCTUnwrap(challenges2.first)

0 commit comments

Comments
 (0)