Skip to content

Commit 2eeeb5b

Browse files
committed
Merge pull request #319 from nickvdp/comment-typos
Fixed typos in comments throughout the project.
2 parents 4ca09b2 + 42b4b02 commit 2eeeb5b

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

stdlib/public/SDK/Foundation/NSStringAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ extension String {
13151315
allowedCharacters: NSCharacterSet
13161316
) -> String? {
13171317
// FIXME: the documentation states that this method can return nil if the
1318-
// transformation is not possible, without going into futher details. The
1318+
// transformation is not possible, without going into further details. The
13191319
// implementation can only return nil if malloc() returns nil, so in
13201320
// practice this is not possible. Still, to be consistent with
13211321
// documentation, we declare the method as returning an optional String.

stdlib/public/core/BridgeObjectiveC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/// `_ObjectiveCBridgeable` can be passed to Objective-C as an NSArray or
1616
/// NSDictionary, respectively. The elements of the resulting NSArray
1717
/// or NSDictionary will be the result of calling `_bridgeToObjectiveC`
18-
/// on each elmeent of the source container.
18+
/// on each element of the source container.
1919
public protocol _ObjectiveCBridgeable {
2020
typealias _ObjectiveCType : AnyObject
2121

stdlib/public/core/LazySequence.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public protocol LazySequenceType : SequenceType {
141141
/// of `self` can prevent result types from growing an extra
142142
/// `LazySequence` layer. For example,
143143
///
144-
/// _prext_ example neeeded
144+
/// _prext_ example needed
145145
///
146146
/// Note: this property need not be implemented by conforming types,
147147
/// it has a default implementation in a protocol extension that

test/1_stdlib/Map.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ for x in s {
5252
}
5353
print(">")
5454

55-
//===--- Avoid creating gratutitously self-destructive sequences ----------===//
55+
//===--- Avoid creating gratuitously self-destructive sequences ----------===//
5656

5757
// In a naive implementation, mapping over a non-self-destructive
5858
// SequenceType having a reference-semantics GeneratorType produces a

test/1_stdlib/NSStringAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ NSStringAPIs.test("rangeOfString(_:options:range:locale:)") {
11901190
// grapheme cluster boundaries -- these can not be created with public
11911191
// String interface.
11921192
//
1193-
// FIXME: why does this seach succeed and the above queries fail? There is
1193+
// FIXME: why does this search succeed and the above queries fail? There is
11941194
// no apparent pattern.
11951195
expectEqual("\u{3099}", s[s.rangeOfString("\u{3099}")!])
11961196
}

test/IDE/complete_dynamic_lookup.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ func testAnyObject10() {
455455
func testAnyObject11(dl: AnyObject) {
456456
dl.returnsObjcClass#^DL_FUNC_NAME_1^#
457457
}
458-
// FIXME: it wolud be nice if we produced a call pattern here.
458+
// FIXME: it would be nice if we produced a call pattern here.
459459
// DL_FUNC_NAME_1: Begin completions
460460
// DL_FUNC_NAME_1-DAG: Decl[InstanceMethod]/CurrNominal: .map({#(f):
461461
// DL_FUNC_NAME_1-DAG: Decl[InstanceMethod]/CurrNominal: .flatMap({#(f):
@@ -470,7 +470,7 @@ func testAnyObject11_(dl: AnyObject) {
470470
func testAnyObject12(dl: AnyObject) {
471471
dl.returnsObjcClass.#^DL_FUNC_NAME_DOT_1^#
472472
}
473-
// FIXME: it wolud be nice if we produced a call pattern here.
473+
// FIXME: it would be nice if we produced a call pattern here.
474474
// DL_FUNC_NAME_DOT_1: Begin completions
475475
// DL_FUNC_NAME_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: map({#(f):
476476
// DL_FUNC_NAME_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: flatMap({#(f):

test/IDE/complete_value_expr.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ func testInsideFunctionCall1() {
769769
var a = FooStruct()
770770
a.instanceFunc0(#^INSIDE_FUNCTION_CALL_1^#
771771
// There should be no other results here because the function call
772-
// unambigously resolves to overload that takes 0 arguments.
772+
// unambiguously resolves to overload that takes 0 arguments.
773773
// INSIDE_FUNCTION_CALL_1: Begin completions
774774
// INSIDE_FUNCTION_CALL_1-NEXT: Pattern/ExprSpecific: ['('])[#Void#]{{; name=.+$}}
775775
// INSIDE_FUNCTION_CALL_1-NEXT: End completions
@@ -789,7 +789,7 @@ func testInsideFunctionCall3() {
789789
FooStruct().instanceFunc1(42, #^INSIDE_FUNCTION_CALL_3^#
790790
// INSIDE_FUNCTION_CALL_3: Begin completions
791791
// FIXME: There should be no results here because the function call
792-
// unambigously resolves to overload that takes 1 argument.
792+
// unambiguously resolves to overload that takes 1 argument.
793793
// INSIDE_FUNCTION_CALL_3-DAG: Decl[GlobalVar]/CurrModule: fooObject[#FooStruct#]{{; name=.+$}}
794794
// INSIDE_FUNCTION_CALL_3: End completions
795795
}

test/Prototypes/CollectionTransformers.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public protocol ApproximateCountableSequenceType : SequenceType {
2424
var approximateCount: ApproximateCount { get }
2525
}
2626

27-
/// A collection that provides an efficient way to spilt its index ranges.
27+
/// A collection that provides an efficient way to split its index ranges.
2828
public protocol SplittableCollectionType : CollectionType {
2929
// We need this protocol so that collections with only forward or bidirectional
3030
// traversals could customize their splitting behavior.

test/SILGen/objc_enum.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ _ = NSFungingMask.ToTheMax
4747

4848
// CHECK-DAG: sil shared [transparent] [thunk] @_TTWOSC16NSRuncingOptionss16RawRepresentable5gizmoFS0_C
4949

50-
// Extension conformances get linkage occording to the protocol's accessibility, as normal.
50+
// Extension conformances get linkage according to the protocol's accessibility, as normal.
5151
// CHECK-DAG: sil_witness_table hidden NSRuncingOptions: Bub module objc_enum
5252

utils/benchmark/BST/bst.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,5 @@ func test(N:Int) {
141141
print("")
142142
}
143143

144-
// I'm embarassed that I don't know how to read cmd line args.
144+
// I'm embarrassed that I don't know how to read cmd line args.
145145
test(1000)

0 commit comments

Comments
 (0)