File tree Expand file tree Collapse file tree 10 files changed +12
-12
lines changed Expand file tree Collapse file tree 10 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -1315,7 +1315,7 @@ extension String {
1315
1315
allowedCharacters: NSCharacterSet
1316
1316
) -> String ? {
1317
1317
// 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
1319
1319
// implementation can only return nil if malloc() returns nil, so in
1320
1320
// practice this is not possible. Still, to be consistent with
1321
1321
// documentation, we declare the method as returning an optional String.
Original file line number Diff line number Diff line change 15
15
/// `_ObjectiveCBridgeable` can be passed to Objective-C as an NSArray or
16
16
/// NSDictionary, respectively. The elements of the resulting NSArray
17
17
/// 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.
19
19
public protocol _ObjectiveCBridgeable {
20
20
typealias _ObjectiveCType : AnyObject
21
21
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public protocol LazySequenceType : SequenceType {
141
141
/// of `self` can prevent result types from growing an extra
142
142
/// `LazySequence` layer. For example,
143
143
///
144
- /// _prext_ example neeeded
144
+ /// _prext_ example needed
145
145
///
146
146
/// Note: this property need not be implemented by conforming types,
147
147
/// it has a default implementation in a protocol extension that
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ for x in s {
52
52
}
53
53
print ( " > " )
54
54
55
- //===--- Avoid creating gratutitously self-destructive sequences ----------===//
55
+ //===--- Avoid creating gratuitously self-destructive sequences ----------===//
56
56
57
57
// In a naive implementation, mapping over a non-self-destructive
58
58
// SequenceType having a reference-semantics GeneratorType produces a
Original file line number Diff line number Diff line change @@ -1190,7 +1190,7 @@ NSStringAPIs.test("rangeOfString(_:options:range:locale:)") {
1190
1190
// grapheme cluster boundaries -- these can not be created with public
1191
1191
// String interface.
1192
1192
//
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
1194
1194
// no apparent pattern.
1195
1195
expectEqual ( " \u{3099} " , s [ s. rangeOfString ( " \u{3099} " ) !] )
1196
1196
}
Original file line number Diff line number Diff line change @@ -455,7 +455,7 @@ func testAnyObject10() {
455
455
func testAnyObject11( dl: AnyObject ) {
456
456
dl. returnsObjcClass#^DL_FUNC_NAME_1^#
457
457
}
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.
459
459
// DL_FUNC_NAME_1: Begin completions
460
460
// DL_FUNC_NAME_1-DAG: Decl[InstanceMethod]/CurrNominal: .map({#(f):
461
461
// DL_FUNC_NAME_1-DAG: Decl[InstanceMethod]/CurrNominal: .flatMap({#(f):
@@ -470,7 +470,7 @@ func testAnyObject11_(dl: AnyObject) {
470
470
func testAnyObject12( dl: AnyObject ) {
471
471
dl. returnsObjcClass. #^DL_FUNC_NAME_DOT_1^#
472
472
}
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.
474
474
// DL_FUNC_NAME_DOT_1: Begin completions
475
475
// DL_FUNC_NAME_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: map({#(f):
476
476
// DL_FUNC_NAME_DOT_1-DAG: Decl[InstanceMethod]/CurrNominal: flatMap({#(f):
Original file line number Diff line number Diff line change @@ -769,7 +769,7 @@ func testInsideFunctionCall1() {
769
769
var a = FooStruct ( )
770
770
a. instanceFunc0( #^INSIDE_FUNCTION_CALL_1 ^#
771
771
// 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.
773
773
// INSIDE_FUNCTION_CALL_1: Begin completions
774
774
// INSIDE_FUNCTION_CALL_1-NEXT: Pattern/ExprSpecific: ['('])[#Void#]{{; name=.+$}}
775
775
// INSIDE_FUNCTION_CALL_1-NEXT: End completions
@@ -789,7 +789,7 @@ func testInsideFunctionCall3() {
789
789
FooStruct ( ) . instanceFunc1( 42 , #^INSIDE_FUNCTION_CALL_3 ^#
790
790
// INSIDE_FUNCTION_CALL_3: Begin completions
791
791
// 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.
793
793
// INSIDE_FUNCTION_CALL_3-DAG: Decl[GlobalVar]/CurrModule: fooObject[#FooStruct#]{{; name=.+$}}
794
794
// INSIDE_FUNCTION_CALL_3: End completions
795
795
}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public protocol ApproximateCountableSequenceType : SequenceType {
24
24
var approximateCount : ApproximateCount { get }
25
25
}
26
26
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.
28
28
public protocol SplittableCollectionType : CollectionType {
29
29
// We need this protocol so that collections with only forward or bidirectional
30
30
// traversals could customize their splitting behavior.
Original file line number Diff line number Diff line change @@ -47,6 +47,6 @@ _ = NSFungingMask.ToTheMax
47
47
48
48
// CHECK-DAG: sil shared [transparent] [thunk] @_TTWOSC16NSRuncingOptionss16RawRepresentable5gizmoFS0_C
49
49
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.
51
51
// CHECK-DAG: sil_witness_table hidden NSRuncingOptions: Bub module objc_enum
52
52
Original file line number Diff line number Diff line change @@ -141,5 +141,5 @@ func test(N:Int) {
141
141
print ( " " )
142
142
}
143
143
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.
145
145
test ( 1000 )
You can’t perform that action at this time.
0 commit comments