Skip to content

Commit 1075bea

Browse files
authored
Spelling include swift (#58573)
* spelling: offset Signed-off-by: Josh Soref <[email protected]> * spelling: parameter Signed-off-by: Josh Soref <[email protected]> * spelling: syntax Signed-off-by: Josh Soref <[email protected]> * spelling: that Signed-off-by: Josh Soref <[email protected]> * spelling: the Signed-off-by: Josh Soref <[email protected]> Co-authored-by: Josh Soref <[email protected]>
1 parent 55cda87 commit 1075bea

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

include/swift/ABI/Metadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ struct TargetClassMetadata : public TargetAnyClassMetadataVariant {
877877
//
878878
// Using Objective-C runtime, KVO can modify object behavior without needing
879879
// to modify the object's code. This is done by dynamically creating an
880-
// artificial subclass of the the object's type.
880+
// artificial subclass of the object's type.
881881
//
882882
// The isa pointer of the observed object is swapped out to point to
883883
// the artificial subclass, which has the following properties:

include/swift/ABI/TaskOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class TaskGroupTaskOptionRecord : public TaskOptionRecord {
7878

7979
/// Task option to specify on what executor the task should be executed.
8080
///
81-
/// Not passing this option implies that that a "best guess" or good default
81+
/// Not passing this option implies that a "best guess" or good default
8282
/// executor should be used instead, most often this may mean the global
8383
/// concurrent executor, or the enclosing actor's executor.
8484
class ExecutorTaskOptionRecord : public TaskOptionRecord {

include/swift/Concurrency/Actor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ enum : uint32_t {
3939
// It is possible for an actor to be in Running and yet completely released
4040
// by clients. However, the actor needs to be kept alive until it is done
4141
// executing the task that is running on it and gives it up. It is only
42-
// after that that we can safely deallocate it.
42+
// after that we can safely deallocate it.
4343
ActorStateMask = 0x7,
4444

4545
/// The actor is not currently scheduled. Completely redundant

include/swift/Demangling/Demangler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ class Demangler : public NodeFactory {
623623

624624
/// A demangler which uses stack space for its initial memory.
625625
///
626-
/// The \p Size paramter specifies the size of the stack space.
626+
/// The \p Size parameter specifies the size of the stack space.
627627
template <size_t Size> class StackAllocatedDemangler : public Demangler {
628628
char StackSpace[Size];
629629

include/swift/Reflection/TypeRefBuilder.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,13 +1033,13 @@ class TypeRefBuilder {
10331033
auto parentOffsetAddress = detail::applyRelativeOffset(
10341034
(const char *)contextDescriptorAddress,
10351035
(int32_t)contextDescriptor->getParentOffset());
1036-
auto parentOfsetBytes = OpaqueByteReader(
1036+
auto parentOffsetBytes = OpaqueByteReader(
10371037
remote::RemoteAddress(parentOffsetAddress), sizeof(uint32_t));
1038-
if (!parentOfsetBytes.get()) {
1038+
if (!parentOffsetBytes.get()) {
10391039
Error = "Failed to parent offset in a type descriptor.";
10401040
return llvm::None;
10411041
}
1042-
auto parentFieldOffset = (const int32_t *)parentOfsetBytes.get();
1042+
auto parentFieldOffset = (const int32_t *)parentOffsetBytes.get();
10431043
auto parentTargetAddress = detail::applyRelativeOffset(
10441044
(const char *)parentOffsetAddress, *parentFieldOffset);
10451045

@@ -1128,13 +1128,13 @@ class TypeRefBuilder {
11281128
auto typeNameOffsetAddress =
11291129
detail::applyRelativeOffset((const char *)typeDescriptorAddress,
11301130
(int32_t)typeDescriptor->getNameOffset());
1131-
auto typeNameOfsetBytes = OpaqueByteReader(
1131+
auto typeNameOffsetBytes = OpaqueByteReader(
11321132
remote::RemoteAddress(typeNameOffsetAddress), sizeof(uint32_t));
1133-
if (!typeNameOfsetBytes.get()) {
1133+
if (!typeNameOffsetBytes.get()) {
11341134
Error = "Failed to read type name offset in a type descriptor.";
11351135
return llvm::None;
11361136
}
1137-
auto typeNameOffset = (const uint32_t *)typeNameOfsetBytes.get();
1137+
auto typeNameOffset = (const uint32_t *)typeNameOffsetBytes.get();
11381138
auto typeNameAddress = detail::applyRelativeOffset(
11391139
(const char *)typeNameOffsetAddress, (int32_t)*typeNameOffset);
11401140
std::string typeName;
@@ -1149,15 +1149,15 @@ class TypeRefBuilder {
11491149
auto parentNameOffsetAddress = detail::applyRelativeOffset(
11501150
(const char *)moduleDescriptorAddress,
11511151
(int32_t)moduleDescriptor->getNameOffset());
1152-
auto parentNameOfsetBytes = OpaqueByteReader(
1152+
auto parentNameOffsetBytes = OpaqueByteReader(
11531153
remote::RemoteAddress(parentNameOffsetAddress), sizeof(uint32_t));
1154-
if (!parentNameOfsetBytes.get()) {
1154+
if (!parentNameOffsetBytes.get()) {
11551155
Error = "Failed to read parent name offset in a module descriptor.";
11561156
return llvm::None;
11571157
}
1158-
auto parentNameOfset = (const uint32_t *)parentNameOfsetBytes.get();
1158+
auto parentNameOffset = (const uint32_t *)parentNameOffsetBytes.get();
11591159
auto parentNameAddress = detail::applyRelativeOffset(
1160-
(const char *)parentNameOffsetAddress, (int32_t)*parentNameOfset);
1160+
(const char *)parentNameOffsetAddress, (int32_t)*parentNameOffset);
11611161
std::string parentName;
11621162
OpaqueStringReader(remote::RemoteAddress(parentNameAddress), parentName);
11631163
return parentName;
@@ -1183,13 +1183,13 @@ class TypeRefBuilder {
11831183
auto protocolNameOffsetAddress = detail::applyRelativeOffset(
11841184
(const char *)protocolDescriptorAddress,
11851185
(int32_t)protocolDescriptor->getNameOffset());
1186-
auto protocolNameOfsetBytes = OpaqueByteReader(
1186+
auto protocolNameOffsetBytes = OpaqueByteReader(
11871187
remote::RemoteAddress(protocolNameOffsetAddress), sizeof(uint32_t));
1188-
if (!protocolNameOfsetBytes.get()) {
1188+
if (!protocolNameOffsetBytes.get()) {
11891189
Error = "Failed to read type name offset in a protocol descriptor.";
11901190
return llvm::None;
11911191
}
1192-
auto protocolNameOffset = (const uint32_t *)protocolNameOfsetBytes.get();
1192+
auto protocolNameOffset = (const uint32_t *)protocolNameOffsetBytes.get();
11931193

11941194
// Using the offset above, compute the address of the name field itsel
11951195
// and read it.

include/swift/Syntax/Syntax.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class OwnedSyntaxRef {
141141

142142
/// Same as \c OwnedSyntaxRef but can be null. We don't use \c
143143
/// Optional<OwnedSyntaxRef<SyntaxRefType>>>, because then we couldn't access
144-
/// the underlying \c SytnaxRefType via the \c -> operator (the use of \c ->
144+
/// the underlying \c SyntaxRefType via the \c -> operator (the use of \c ->
145145
/// would access the \c OwnedSyntaxRef<SyntaxRefType> wrapped by \c Optional and
146146
/// not the \c SyntaxRefType wrapped by \c OwnedSyntaxRef.
147147
template <typename SyntaxRefType>

0 commit comments

Comments
 (0)