Skip to content

Commit e78e7e4

Browse files
[gardening] Fix recently introduced typos.
1 parent a51aa91 commit e78e7e4

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

include/swift/AST/Types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2495,7 +2495,7 @@ BEGIN_CAN_TYPE_WRAPPER(GenericFunctionType, AnyFunctionType)
24952495
CanType input, CanType result,
24962496
const ExtInfo &info) {
24972497
// Knowing that the argument types are independently canonical is
2498-
// not suffiicient to guarantee that the function type will be canonical.
2498+
// not sufficient to guarantee that the function type will be canonical.
24992499
auto fnType = GenericFunctionType::get(sig, input, result, info);
25002500
return cast<GenericFunctionType>(fnType->getCanonicalType());
25012501
}

stdlib/public/SDK/Foundation/Data.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public struct Data : ReferenceConvertible, CustomStringConvertible, Equatable, H
163163

164164
/// Initialize a `Data` with the specified size.
165165
///
166-
/// This initializer doesn not necessarily allocate the requested memory right away. Mutable data allocates additional memory as needed, so `capacity` simply establishes the initial capacity. When it does allocate the initial memory, though, it allocates the specified amount.
166+
/// This initializer doesn't necessarily allocate the requested memory right away. Mutable data allocates additional memory as needed, so `capacity` simply establishes the initial capacity. When it does allocate the initial memory, though, it allocates the specified amount.
167167
///
168168
/// This method sets the `count` of the data to 0.
169169
///

stdlib/public/core/FixedPoint.swift.gyb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ fixed_fixed_conversion_function = gyb.parse_template("fixed_fixed_conversion_fun
460460
result = (Builtin.${srcExt}_Int${srcBits}_Int${bits}(src), false._value)
461461
% end
462462
%
463-
% if not safelyConvertable:
463+
% if not safelyConvertible:
464464
${error_check}
465465
% end
466466
self._value = result.value
@@ -472,7 +472,7 @@ fixed_fixed_conversion_function = gyb.parse_template("fixed_fixed_conversion_fun
472472
% srcSigned = src_ty.is_signed
473473
% Src = src_ty.stdlib_name
474474
% (srcSign, srcExt) = ('s', 'sext') if srcSigned else ('u', 'zext')
475-
% safelyConvertable = (srcBits < bits and (srcSign == sign or signed)) or (srcBits == bits and srcSign == sign)
475+
% safelyConvertible = (srcBits < bits and (srcSign == sign or signed)) or (srcBits == bits and srcSign == sign)
476476

477477
@_transparent
478478
extension ${Self} {
@@ -487,7 +487,7 @@ extension ${Self} {
487487
}
488488
}
489489

490-
% if safelyConvertable:
490+
% if safelyConvertible:
491491
@available(*, message: "Converting ${Src} to ${Self} will always succeed.")
492492
% end
493493
@_transparent

test/1_stdlib/Runtime.swift.gyb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,9 +1543,9 @@ AvailabilityVersionsTestSuite.test("lexicographic_compare") {
15431543
checkComparable(.lt, version(0, 0, 0), version(0, 1, 0))
15441544
checkComparable(.lt, version(0, 0, 0), version(1, 0, 0))
15451545

1546-
checkComparable(.lt,version(10, 9, 0), version(10, 10, 0))
1547-
checkComparable(.lt,version(10, 9, 11), version(10, 10, 0))
1548-
checkComparable(.lt,version(10, 10, 3), version(10, 11, 0))
1546+
checkComparable(.lt, version(10, 9, 0), version(10, 10, 0))
1547+
checkComparable(.lt, version(10, 9, 11), version(10, 10, 0))
1548+
checkComparable(.lt, version(10, 10, 3), version(10, 11, 0))
15491549

15501550
checkComparable(.lt, version(8, 3, 0), version(9, 0, 0))
15511551

tools/SourceKit/lib/Core/Context.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@
1717
using namespace SourceKit;
1818

1919
SourceKit::Context::Context(StringRef RuntimeLibPath,
20-
llvm::function_ref<
21-
std::unique_ptr<LangSupport>(Context &)> LangSupportFactoryFn)
22-
: RuntimeLibPath(RuntimeLibPath),
20+
llvm::function_ref<std::unique_ptr<LangSupport>(Context &)>
21+
LangSupportFactoryFn) : RuntimeLibPath(RuntimeLibPath),
2322
NotificationCtr(new NotificationCenter()) {
2423
// Should be called last after everything is initialized.
2524
SwiftLang = LangSupportFactoryFn(*this);

0 commit comments

Comments
 (0)