Skip to content

Spelling stdlib #42444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 37 commits into from
Apr 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c6fa518
spelling: against
jsoref Apr 17, 2022
41fa037
spelling: algorithmic
jsoref Apr 17, 2022
125c383
spelling: alignment
jsoref Apr 18, 2022
a05f813
spelling: anything
jsoref Apr 17, 2022
09cde24
spelling: architectural
jsoref Apr 17, 2022
b725283
spelling: architecture
jsoref Apr 17, 2022
1fb4cf4
spelling: are
jsoref Apr 17, 2022
5e30713
spelling: artificial
jsoref Apr 17, 2022
95ff483
spelling: aside
jsoref Apr 17, 2022
9230be6
spelling: available
jsoref Apr 17, 2022
9f16b6d
spelling: being
jsoref Apr 18, 2022
09dbd3c
spelling: bidirectional
jsoref Apr 17, 2022
11ca97b
spelling: characters
jsoref Apr 17, 2022
8f0349d
spelling: circular
jsoref Apr 17, 2022
8d124d8
spelling: compatibility
jsoref Apr 17, 2022
b7e8450
spelling: compiled
jsoref Apr 17, 2022
41a2ef9
spelling: correctly
jsoref Apr 18, 2022
685cd44
spelling: covers
jsoref Apr 17, 2022
59b18a8
spelling: declaration
jsoref Apr 17, 2022
bf15328
spelling: dependencies
jsoref Apr 17, 2022
212521c
spelling: descriptor
jsoref Apr 17, 2022
a089550
spelling: dictionaries
jsoref Apr 17, 2022
23dd0d0
spelling: dynamic
jsoref Apr 17, 2022
e53672c
spelling: greater
jsoref Apr 17, 2022
02be6e0
spelling: hierarchy
jsoref Apr 17, 2022
c8e452e
spelling: immortal
jsoref Apr 17, 2022
684be9e
spelling: initialize
jsoref Apr 17, 2022
c1af9db
spelling: initializes
jsoref Apr 17, 2022
5b0f802
spelling: iterable
jsoref Apr 17, 2022
47f5014
spelling: message
jsoref Apr 17, 2022
02d066a
spelling: minimum
jsoref Apr 17, 2022
0d4e892
spelling: multiple
jsoref Apr 17, 2022
0a43aef
spelling: originally
jsoref Apr 17, 2022
77d8fa1
spelling: simplified
jsoref Apr 17, 2022
fdc4338
spelling: sophisticated
jsoref Apr 17, 2022
cb95cdc
spelling: trivia
jsoref Apr 17, 2022
58f6e50
spelling: wasn't
jsoref Apr 17, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions stdlib/cmake/modules/AddSwiftStdlib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ function(add_swift_target_library name)
${SWIFTLIB_FRAMEWORK_DEPENDS_IOS_TVOS})
endif()

# Collect architecutre agnostic compiler flags
# Collect architecture agnostic compiler flags
set(swiftlib_swift_compile_flags_all ${SWIFTLIB_SWIFT_COMPILE_FLAGS})
if(${sdk} STREQUAL OSX)
list(APPEND swiftlib_swift_compile_flags_all
Expand Down Expand Up @@ -2342,7 +2342,7 @@ function(add_swift_target_library name)
endif()
endforeach()

# Add the swiftmodule-only targets to the lipo target depdencies.
# Add the swiftmodule-only targets to the lipo target dependencies.
foreach(arch ${SWIFT_SDK_${sdk}_MODULE_ARCHITECTURES})
set(_variant_name "${name}-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${arch}")
if(maccatalyst_build_flavor STREQUAL "ios-like")
Expand Down
4 changes: 2 additions & 2 deletions stdlib/include/llvm/ADT/STLExtras.h
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ template <template <typename...> class ItType, typename... Args> class zippy {

} // end namespace detail

/// zip iterator for two or more iteratable types.
/// zip iterator for two or more iterable types.
template <typename T, typename U, typename... Args>
detail::zippy<detail::zip_shortest, T, U, Args...> zip(T &&t, U &&u,
Args &&... args) {
Expand Down Expand Up @@ -1949,7 +1949,7 @@ template <typename R> class enumerator {

} // end namespace detail

/// Given an input range, returns a new range whose values are are pair (A,B)
/// Given an input range, returns a new range whose values are pair (A,B)
/// such that A is the 0-based index of the item in the sequence, and B is
/// the value from the original sequence. Example:
///
Expand Down
2 changes: 1 addition & 1 deletion stdlib/include/llvm/ADT/Twine.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ namespace llvm {

/// A Pointer and Length representation. Used for std::string_view,
/// StringRef, and SmallString. Can't use a StringRef here
/// because they are not trivally constructible.
/// because they are not trivially constructible.
PtrAndLengthKind,

/// A pointer to a formatv_object_base instance.
Expand Down
2 changes: 1 addition & 1 deletion stdlib/include/llvm/Support/Allocator.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class BumpPtrAllocatorImpl
if (PaddedSize > SizeThreshold) {
void *NewSlab =
AllocatorT::Allocate(PaddedSize, alignof(std::max_align_t));
// We own the new slab and don't want anyone reading anyting other than
// We own the new slab and don't want anyone reading anything other than
// pieces returned from this method. So poison the whole slab.
__asan_poison_memory_region(NewSlab, PaddedSize);
CustomSizedSlabs.push_back(std::make_pair(NewSlab, PaddedSize));
Expand Down
2 changes: 1 addition & 1 deletion stdlib/include/llvm/Support/type_traits.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===- llvm/Support/type_traits.h - Simplfied type traits -------*- C++ -*-===//
//===- llvm/Support/type_traits.h - Simplified type traits -------*- C++ -*-===//
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bunch of these items exceed 80 chars, but while I could fix this...

//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
Expand Down
2 changes: 1 addition & 1 deletion stdlib/private/OSLog/OSLogFloatingPointTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//===----------------------------------------------------------------------===//

// This file defines extensions for interpolating floating-point expressions
// into an OSLogMesage. It defines `appendInterpolation` functions for standard
// into an OSLogMessage. It defines `appendInterpolation` functions for standard
// floating-point types. It also defines extensions for serializing floating-
// point types into the argument buffer passed to os_log ABIs.
//
Expand Down
2 changes: 1 addition & 1 deletion stdlib/private/OSLog/OSLogIntegerFormatting.swift
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ extension OSLogIntegerFormatting {
specification += "-"
}

// 2. Minimumn field width
// 2. Minimum field width
// IEEE: When field width is prefixed by `0`, leading zeros (following any
// indication of sign or base) are used to pad to the field width rather
// than performing space padding. If the '0' and '-' flags both appear,
Expand Down
2 changes: 1 addition & 1 deletion stdlib/private/OSLog/OSLogIntegerTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//===----------------------------------------------------------------------===//

// This file defines extensions for interpolating integer expressions into an
// OSLogMesage. It defines `appendInterpolation` functions for standard integer
// OSLogMessage. It defines `appendInterpolation` functions for standard integer
// types. It also defines extensions for serializing integer types into the
// argument buffer passed to os_log ABIs.
//
Expand Down
2 changes: 1 addition & 1 deletion stdlib/private/OSLog/OSLogNSObjectType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//

// This file defines extensions for interpolating NSObject into an OSLogMesage.
// This file defines extensions for interpolating NSObject into an OSLogMessage.
// It defines `appendInterpolation` function for NSObject type. It also defines
// extensions for generating an os_log format string for NSObjects (using the
// format specifier %@) and for serializing NSObject into the argument buffer
Expand Down
2 changes: 1 addition & 1 deletion stdlib/private/OSLog/OSLogStringAlignment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public struct OSLogStringAlignment {
@usableFromInline
internal var anchor: OSLogCollectionBound

/// Initiailzes stored properties.
/// Initializes stored properties.
///
/// - Parameters:
/// - minimumColumnWidth: Minimum number of characters to be displayed. If the value to be
Expand Down
4 changes: 2 additions & 2 deletions stdlib/private/OSLog/OSLogStringTypes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//

// This file defines extensions for interpolating strings into an OSLogMesage.
// This file defines extensions for interpolating strings into an OSLogMessage.
// It defines `appendInterpolation` function for String type. It also defines
// extensions for serializing strings into the argument buffer passed to
// os_log ABIs. Note that os_log requires passing a stable pointer to an
Expand Down Expand Up @@ -169,7 +169,7 @@ internal func serialize(
}

/// Return a pointer that points to a contiguous sequence of null-terminated,
/// UTF8 charcters. If necessary, extends the lifetime of `stringValue` by
/// UTF8 characters. If necessary, extends the lifetime of `stringValue` by
/// using `stringArgumentOwners`.
@_alwaysEmitIntoClient
@inline(never)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public struct LoggingSequence<Base : Sequence> {

extension LoggingSequence: LoggingType {
// I know, I know. It doesn't matter though. The benefit of the whole logging
// class hiearchy is unclear...
// class hierarchy is unclear...
public typealias Log = SequenceLog

public init(wrapping base: Base) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//

// Normalization tests are currently only avaible on Darwin, awaiting a sensible
// Normalization tests are currently only available on Darwin, awaiting a sensible
// file API...
#if _runtime(_ObjC)
import Foundation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public struct NormalizationTest {
}
}

// Normalization tests are currently only avaible on Darwin, awaiting a sensible
// Normalization tests are currently only available on Darwin, awaiting a sensible
// file API...
#if _runtime(_ObjC)
import Foundation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
//
//===----------------------------------------------------------------------===//

// Unicode scalar tests are currently only avaible on Darwin, awaiting a sensible
// Unicode scalar tests are currently only available on Darwin, awaiting a sensible
// file API...
#if _runtime(_ObjC)
import Foundation
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/BackDeployConcurrency/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ list(REMOVE_ITEM SWIFT_SDK_OSX_ARCHITECTURES "arm64e")
# The back-deployed library can only be shared.
list(APPEND SWIFT_STDLIB_LIBRARY_BUILD_TYPES SHARED)

# Link aginst the libswiftCore in the SDK. This intentionally avoids using
# Link against the libswiftCore in the SDK. This intentionally avoids using
# the locally-built libswiftCore.
foreach(sdk ${SWIFT_SDKS})
set(sdk_name ${SWIFT_SDK_${sdk}_LIB_SUBDIR})
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/Distributed/DistributedActorSystem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public protocol DistributedActorSystem: Sendable {
///
/// This method is guaranteed to be called at-most-once for a given id (assuming IDs are unique,
/// and not re-cycled by the system), i.e. if it is called during a failure to initialize completely,
/// the call from the actor's deinitalizer will not happen (as under these circumstances, `deinit` will be run).
/// the call from the actor's deinitializer will not happen (as under these circumstances, `deinit` will be run).
///
/// If `resignID` gets called with some unknown ID, it should crash immediately as it signifies some
/// very unexpected use of the system.
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/Platform/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ foreach(sdk ${SWIFT_SDKS})
# FIXME: When SDK is a cross-compile target (SDK != Host), the generated
# modulemap will be relative to the Host, with hardcoded paths.
# It is not relocatable to the target platform itself.
# This affects any cross-comipled targets that use glibc.modulemap.
# This affects any cross-compiled targets that use glibc.modulemap.

swift_install_in_component(FILES "${glibc_modulemap_out}"
DESTINATION "lib/swift/${arch_subdir}"
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/Reflection/TypeRefBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ TypeRefBuilder::getFieldTypeInfo(const TypeRef *TR) {
return Found->second;

// On failure, fill out the cache, ReflectionInfo by ReflectionInfo,
// until we find the field desciptor we're looking for.
// until we find the field descriptor we're looking for.
while (FirstUnprocessedReflectionInfoIndex < ReflectionInfos.size()) {
auto &Info = ReflectionInfos[FirstUnprocessedReflectionInfoIndex];
for (auto FD : Info.Field) {
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/SwiftOnoneSupport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ add_swift_target_library(swiftSwiftOnoneSupport
if(WINDOWS IN_LIST SWIFT_SDKS)
# When building in Debug mode, the standard library provides the symbols that
# we need and as such SwiftOnoneSupport does not need to provide any exported
# interfaces. This results in the import library beinging elided. However,
# interfaces. This results in the import library being elided. However,
# we explicitly link against the SwiftOnoneSupport library when building
# programs in Debug mode, and need the import library to be generated even if
# nothing is exported. Because we will still generate the DLL, create an
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/SwiftRemoteMirror/SwiftRemoteMirror.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct SwiftReflectionContext {
// call to allocateTemporaryObject, or until the context is destroyed. Does
// NOT free any existing objects created with allocateTemporaryObject or
// allocateSubsequentTemporaryObject. Use to allocate additional objects after
// a call to allocateTemporaryObject when muliple objects are needed
// a call to allocateTemporaryObject when multiple objects are needed
// simultaneously.
template <typename T>
T *allocateSubsequentTemporaryObject() {
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/SwiftShims/RefCount.h
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@ class RefCounts {
return;
}
// Immortal and no objc complications share a bit, so don't let setting
// the complications one clear the immmortal one
// the complications one clear the immortal one
if (oldbits.isImmortal(true) || oldbits.pureSwiftDeallocation() == nonobjc){
assert(!oldbits.hasSideTable());
return;
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/SwiftShims/SwiftStddef.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// found"
// This is a known Clang/Ubuntu bug.
//
// On Windows, the complicated setup between clang and MSVC causes a cicular
// On Windows, the complicated setup between clang and MSVC causes a circular
// dependency between `ucrt` and `SwiftShims`, preventing a successful build of
// the module.
//
Expand Down
4 changes: 2 additions & 2 deletions stdlib/public/SwiftShims/System.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
#define SWIFT_ABI_DARWIN_X86_64_LEAST_VALID_POINTER 0x100000000ULL

// Only the bottom 56 bits are used, and heap objects are eight-byte-aligned.
// This is conservative: in practice architectual limitations and other
// compatiblity concerns likely constrain the address space to 52 bits.
// This is conservative: in practice architectural limitations and other
// compatibility concerns likely constrain the address space to 52 bits.
#define SWIFT_ABI_X86_64_SWIFT_SPARE_BITS_MASK \
SWIFT_ABI_DEFAULT_64BIT_SPARE_BITS_MASK

Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/SwiftShims/Visibility.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
// are known to be exported from a different image. This never
// includes a definition.
//
// Getting the right attribute on a declaratioon can be pretty awkward,
// Getting the right attribute on a declaration can be pretty awkward,
// but it's necessary under the C translation model. All of this
// ceremony is familiar to Windows programmers; C/C++ programmers
// everywhere else usually don't bother, but since we have to get it
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/core/BridgeObjectiveC.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ internal var _orphanedFoundationSubclassesReparented: Bool = false

/// Reparents the SwiftNativeNS*Base classes to be subclasses of their respective
/// Foundation types, or is false if they couldn't be reparented. Must be run
/// in order to bridge Swift Strings, Arrays, Dictionarys, Sets, or Enumerators to ObjC.
/// in order to bridge Swift Strings, Arrays, Dictionaries, Sets, or Enumerators to ObjC.
internal func _connectOrphanedFoundationSubclassesIfNeeded() -> Void {
let bridgeWorks = _bridgeInitializedSuccessfully
_debugPrecondition(bridgeWorks)
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/core/DictionaryBridging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ extension __CocoaDictionary: _DictionaryBuffer {
}
}
_internalInvariantFailure(
"An NSDictionary key wassn't listed amongst its enumerated contents")
"An NSDictionary key wasn't listed amongst its enumerated contents")
}

@usableFromInline
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/core/StringIndex.swift
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ extension String.Index {
}
}

// ### Character (a.k.a. Extended Grapheme Cluster) Aligment
// ### Character (a.k.a. Extended Grapheme Cluster) Alignment
//
// Swift 5.7 assigned a new bit denoting that an index is known to be
// `Character`-aligned. This is used to enable more reliable detection &
Expand Down
4 changes: 2 additions & 2 deletions stdlib/public/core/StringObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ extension _StringObject {
- Older binaries will not look at newly assigned bits, and they will not
set them, either (unless by side effect of calling into newly built code).
Such code must continue working.
- Code in new versions of the stdlib must continue to work corectly even if
- Code in new versions of the stdlib must continue to work correctly even if
some of these newly assigned bits are never set -- as may be the case when
the initialization of a string was emitted entirely into an older client
binary.
Expand Down Expand Up @@ -1000,7 +1000,7 @@ extension _StringObject {
@inline(__always)
internal var isNFC: Bool {
if isSmall {
// TODO(String performance): Worth implementing more sophisiticated
// TODO(String performance): Worth implementing more sophisticated
// check, or else performing normalization on- construction. For now,
// approximate it with isASCII
return smallIsASCII
Expand Down
6 changes: 3 additions & 3 deletions stdlib/public/core/UnicodeScalarProperties.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ extension Unicode.Scalar.Properties {
}

/// A Boolean value indicating whether the scalar is a format control
/// character that has a specific function in the Unicode Bidrectional
/// character that has a specific function in the Unicode Bidirectional
/// Algorithm.
///
/// This property corresponds to the "Bidi_Control" property in the
Expand Down Expand Up @@ -1184,10 +1184,10 @@ extension Unicode.Scalar.Properties {
}

// Used to potentially return a name who can either be represented in a large
// range or algorithmetically. A good example are the Hangul names. Instead of
// range or algorithmically. A good example are the Hangul names. Instead of
// storing those names, we can define an algorithm to generate the name.
internal func _fastScalarName() -> String? {
// Define a couple algorithmetic names below.
// Define a couple algorithmic names below.

let scalarName = String(_scalar.value, radix: 16, uppercase: true)

Expand Down
4 changes: 2 additions & 2 deletions stdlib/public/runtime/ExistentialMetadataImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ struct SWIFT_LIBRARY_VISIBILITY OpaqueExistentialBoxBase
auto *srcValue =
reinterpret_cast<OpaqueValue *>(src->getBuffer(args...));

// Move dest value asside so we can destroy it later.
// Move dest value aside so we can destroy it later.
destType->vw_initializeWithTake(opaqueTmpBuffer, destValue);

src->copyTypeInto(dest, args...);
Expand Down Expand Up @@ -236,7 +236,7 @@ struct SWIFT_LIBRARY_VISIBILITY OpaqueExistentialBoxBase
auto *srcValue =
reinterpret_cast<OpaqueValue *>(src->getBuffer(args...));

// Move dest value asside.
// Move dest value aside.
destType->vw_initializeWithTake(opaqueTmpBuffer, destValue);

src->copyTypeInto(dest, args...);
Expand Down
4 changes: 2 additions & 2 deletions stdlib/public/runtime/MetadataLookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1976,7 +1976,7 @@ static NodePointer getParameterList(NodePointer funcType) {
funcType->findByKind(Node::Kind::ArgumentTuple, /*maxDepth=*/1);
assert(parameterContainer->getNumChildren() > 0);

// This is a type that convers entire parameter list.
// This is a type that covers entire parameter list.
auto parameterList = parameterContainer->getFirstChild();
assert(parameterList->getKind() == Node::Kind::Type);

Expand Down Expand Up @@ -2643,7 +2643,7 @@ void DynamicReplacementDescriptor::disableReplacement() const {
!replacedFunctionKey->isAsync(), /*allowNull*/ false);
}

/// An automatic dymamic replacement entry.
/// An automatic dynamic replacement entry.
namespace {
class AutomaticDynamicReplacementEntry {
RelativeDirectPointer<DynamicReplacementScope, false> replacementScope;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ typedef BOOL (*objc_hook_getImageName)(
/// Swift at all.
///
/// Also, if the symbol being patched has references within the image where it
/// was originaly defined, those references will \e not be patched.
/// was originally defined, those references will \e not be patched.
static void patchLazyPointers(const mach_header *mh, const char *symbolName,
const void *newValue) {
// Get linkEditBase
Expand Down
6 changes: 3 additions & 3 deletions stdlib/public/runtime/SwiftObject.mm
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static Class _swift_getObjCClassOfAllocated(const void *object) {
const ClassMetadata *swift::swift_getObjCClassFromObject(HeapObject *object) {
auto classAsMetadata = _swift_getClass(object);

// Walk up the superclass chain skipping over artifical Swift classes.
// Walk up the superclass chain skipping over artificial Swift classes.
// If we find a non-Swift class use the result of [object class] instead.

while (classAsMetadata && classAsMetadata->isTypeMetadata()) {
Expand Down Expand Up @@ -129,7 +129,7 @@ static Class _swift_getObjCClassOfAllocated(const void *object) {
auto classAsMetadata = _swift_getClass(object);

#if SWIFT_OBJC_INTEROP
// Walk up the superclass chain skipping over artifical Swift classes.
// Walk up the superclass chain skipping over artificial Swift classes.
// If we find a non-Swift class use the result of [object class] instead.

while (classAsMetadata && classAsMetadata->isTypeMetadata()) {
Expand Down Expand Up @@ -1441,7 +1441,7 @@ static bool isUniquelyReferenced(id object) {
}

// Given a non-@objc object reference, return true iff the
// object is non-nil and has a strong reference count greather than 1
// object is non-nil and has a strong reference count greater than 1
bool swift::swift_isEscapingClosureAtFileLocation(const HeapObject *object,
const unsigned char *filename,
int32_t filenameLength,
Expand Down
2 changes: 1 addition & 1 deletion stdlib/toolchain/Compatibility50/CompatibilityOverride.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//===--- CompatibiltyOverride.h - Back-deploying compatibility fixes --*- C++ -*-===//
//===--- CompatibilityOverride.h - Back-deploying compatibility fixes --*- C++ -*-===//
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I could fix this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These headers are kind of best-effort. As long as clang-format doesn't complain it's not a big deal.

//
// This source file is part of the Swift.org open source project
//
Expand Down
Loading