Skip to content

Commit 212aba5

Browse files
[gardening] Fix recently introduced typos: "’" → "'", "represention" → "representation", "arcitectures" → "architectures", "refernce" → "reference", "incovation" → "invocation"
1 parent 2527f3c commit 212aba5

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

lib/IRGen/GenCast.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ void irgen::emitScalarCheckedCast(IRGenFunction &IGF,
736736
if (auto sourceOptObjectType =
737737
sourceType.getAnyOptionalObjectType(*IGF.IGM.SILMod, optKind)) {
738738

739-
// Translate the value from an enum represention to a possibly-null
739+
// Translate the value from an enum representation to a possibly-null
740740
// representation. Note that we assume that this projection is safe
741741
// for the particular case of an optional class-reference or metatype
742742
// value.
@@ -820,4 +820,4 @@ void irgen::emitScalarCheckedCast(IRGenFunction &IGF,
820820

821821
llvm::Value *result = emitClassDowncast(IGF, instance, targetType, mode);
822822
out.add(result);
823-
}
823+
}

lib/Option/SanitizerOptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ SanitizerKind swift::parseSanitizerArgValues(const llvm::opt::Arg *A,
7777
Triple.getTriple());
7878
}
7979
// Thread Sanitizer only works on OS X and the simulators. It's only supported
80-
// on 64 bit arcitectures.
80+
// on 64 bit architectures.
8181
if (kind == SanitizerKind::Thread &&
8282
(!(Triple.isMacOSX() || tripleIsAnySimulator(Triple)) ||
8383
!Triple.isArch64Bit())) {

stdlib/public/core/Arrays.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ extension ${Self} : RangeReplaceableCollection, _ArrayProtocol {
541541
_buffer = ${Self}._allocateBufferUninitialized(minimumCapacity: count)
542542
_buffer.count = count
543543
}
544-
// Cant store count here because the buffer might be pointing to the
544+
// Can't store count here because the buffer might be pointing to the
545545
// shared empty array.
546546
}
547547

test/SIL/Parser/nonatomic_reference_counting.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-swift-frontend %s -emit-silgen | FileCheck %s
22

3-
// Check that all refernce counting instructions can take the [nonatomic]
3+
// Check that all reference counting instructions can take the [nonatomic]
44
// attribute. SIL parser should be able to parse this attribute and
55
// SIL printer should properly print it.
66

utils/swift_build_support/tests/test_toolchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_clang_available_on_this_platform(self):
3131

3232
class HostToolchainTestCase(unittest.TestCase):
3333
def test_found_executables_match(self):
34-
# Test that the raw incovation of _first_common_executables
34+
# Test that the raw invocation of _first_common_executables
3535
# either returns None or matching paths.
3636
suffixes = ['', '-3.8', '-3.7', '-3.6']
3737
toolchain = host_toolchain(suffixes=suffixes)

0 commit comments

Comments
 (0)