Skip to content

Commit 441c85f

Browse files
authored
Merge pull request swiftlang#22499 from rex4539/fix-typos
Fix typos
2 parents c8428f0 + d84048e commit 441c85f

16 files changed

+27
-27
lines changed

docs/ABI/TypeMetadata.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ Protocol Descriptor
410410
~~~~~~~~~~~~~~~~~~~
411411

412412
Protocol descriptors describe the requirements of a protocol, and act as a
413-
handle for the protocol itself. The are referenced by `Protocol metadata`_, as
413+
handle for the protocol itself. They are referenced by `Protocol metadata`_, as
414414
well as `Protocol Conformance Records`_ and generic requirements. Protocol
415415
descriptors are only created for non-`@objc` Swift protocols: `@objc` protocols
416416
are emitted as Objective-C metadata. The layout of Swift protocol descriptors is
@@ -433,7 +433,7 @@ as follows:
433433
the protocol. The generic requirements themselves follow the fixed part
434434
of the protocol descriptor.
435435
- The number of **protocol requirements** in the protocol. The protocol
436-
requirements follow the generic reuqirements that form the **requirement
436+
requirements follow the generic requirements that form the **requirement
437437
signature**.
438438
- A string containing the **associated type names**, a C string comprising the
439439
names of all of the associated types in this protocol, separated by spaces,

docs/ABIStabilityManifesto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ Every existing runtime function will need to be audited for its desirability and
388388

389389
The runtime is also responsible for lazily creating new type metadata entries at run time, either for generic type instantiations or for resilient constructs. Library evolution in general introduces a whole new category of needs from the runtime by making data and metadata more opaque, requiring interaction to be done through runtime APIs. Additionally, ownership semantics may require new runtime APIs or modifications to existing APIs. These new runtime needs are still under investigation [[SR-4352](https://bugs.swift.org/browse/SR-4352)].
390390

391-
There are many potential future directions to open up the ABI and operate on less-opaque data directly, as well a techniques such as call-site caching. These are ABI-additive, and will be interesting to explore in the future.
391+
There are many potential future directions to open up the ABI and operate on less-opaque data directly, as well as techniques such as call-site caching. These are ABI-additive, and will be interesting to explore in the future.
392392

393393
For a potentially-out-of-date listing of runtime symbols and some details, see the [Runtime docs](https://github.com/apple/swift/blob/master/docs/Runtime.md).
394394

docs/ARCOptimization.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Contrasts with Alias Analysis
162162

163163
A common question is what is the difference in between RC Identity analysis and
164164
alias analysis. While alias analysis is attempting to determine if two memory
165-
location are the same, RC identity analysis is attempting to determine if
165+
locations are the same, RC identity analysis is attempting to determine if
166166
reference counting operations on different values would result in the same
167167
reference count being read or written to.
168168

@@ -544,7 +544,7 @@ optimization? We must consider three areas of concern:
544544
retain/release counts in the loop? Consider a set of retains and a set of
545545
releases that we wish to hoist out of a loop. We can only hoist the retain,
546546
release sets out of the loop if all paths in the given loop region from the
547-
entrance to the backedge. have exactly one retain or release from this set.
547+
entrance to the backedge have exactly one retain or release from this set.
548548

549549
4. Any early exits that we must move a retain past or a release by must be
550550
compensated appropriately. This will be discussed in the next section.
@@ -555,7 +555,7 @@ hoist with safety.
555555
Compensating Early Exits for Lost Dynamic Reference Counts
556556
----------------------------------------------------------
557557

558-
Lets say that we have the following loop canonicalized SIL::
558+
Let's say that we have the following loop canonicalized SIL::
559559

560560
bb0(%0 : $Builtin.NativeObject):
561561
br bb1
@@ -579,7 +579,7 @@ Lets say that we have the following loop canonicalized SIL::
579579
bb6:
580580
return ...
581581

582-
Can we hoist the retain/release pair here? Lets assume the loop is 3 iterations
582+
Can we hoist the retain/release pair here? Let's assume the loop is 3 iterations
583583
and we completely unroll it. Then we have::
584584

585585
bb0:
@@ -667,7 +667,7 @@ exit. Consider the following::
667667
bb6:
668668
return ...
669669

670-
Lets unroll this loop::
670+
Let's unroll this loop::
671671

672672
bb0(%0 : $Builtin.NativeObject):
673673
br bb1

docs/CallingConvention.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ opaque range in the maximal aligned storage unit with a mapping from
10481048
that aligned storage unit to an integer of the aligned storage unit's
10491049
size. Remove any other opaque ranges in the maximal aligned storage
10501050
unit. Note that this can create overlapping ranges in some cases.
1051-
For this purposes of this calculation, the last maximal aligned
1051+
For the purposes of this calculation, the last maximal aligned
10521052
storage unit should be considered "full", as if the type had an
10531053
infinite amount of empty tail-padding.
10541054

docs/CompilerPerformance.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ higher-resolution, more-detailed profile, in practice Instruments will often
382382
stall out and become unresponsive trying to process the additional detail.
383383

384384
Similarly, be sure that as many applications as possible (especially those with
385-
debuginfo themselves!) are closed, so that Instruments has has little additional
385+
debuginfo themselves!) are closed, so that Instruments has little additional
386386
material to symbolicate as possible. It collects a _whole system profile_ at
387387
very high resolution, so you want to make its life easy by profiling on a quiet
388388
machine doing little beyond the task you're interested in.
@@ -645,7 +645,7 @@ compilers on hand while you're working.
645645
```
646646
647647
- `-Xfrontend -print-clang-stats`: prints counters associated with the clang
648-
AST reader, which is operated as a subsystem fo the swift compiler when
648+
AST reader, which is operated as a subsystem of the swift compiler when
649649
importing definitions from C/ObjC. Its output is added to the end of
650650
whatever output comes from `-print-stats`, and looks like this:
651651

docs/Generics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ protocols. A value of an existential type (say, Comparable) is a pair (value,
783783
vtable). 'value' stores the current value either directly (if it fits in the 3
784784
words allocated to the value) or as a pointer to the boxed representation (if
785785
the actual representation is larger than 3 words). By itself, this value cannot
786-
be interpreted, because it's type is not known statically, and may change due to
786+
be interpreted, because its type is not known statically, and may change due to
787787
assignment. The vtable provides the means to manipulate the value, because it
788788
provides a mapping between the protocols to which the existential type conforms
789789
(which is known statically) to the functions that implements that

docs/LibraryEvolution.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ Operators and Precedence Groups
11351135
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11361136

11371137
Operator and precedence group declarations are entirely compile-time
1138-
constructs, so changing them does not have any affect on binary compatibility.
1138+
constructs, so changing them does not have any effect on binary compatibility.
11391139
However, they do affect *source* compatibility, so it is recommended that
11401140
existing operators are not changed at all except for the following:
11411141

docs/ObjectInitialization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Initialization proceeds in several steps:
117117
2. ``B``'s initializer initializes the stored property ``d`` to
118118
``17.0``.
119119
3. ``B``'s initializer chains to ``A``'s initializer.
120-
4. ``A``'s initializer initialize's the stored properties ``i`` and
120+
4. ``A``'s initializer initializes the stored properties ``i`` and
121121
``s``'.
122122
5. ``A``'s initializer calls ``completeInit()``, then returns.
123123
6. ``B``'s initializer calls ``completeInitForB()``, then returns.
@@ -191,7 +191,7 @@ Initialization proceeds as follows:
191191
``d`` to ``17.0``.
192192
5. ``B``'s designated initializer chains to ``A``'s designated
193193
initializer.
194-
6. ``A``'s designated initializer initialize's the stored properties
194+
6. ``A``'s designated initializer initializes the stored properties
195195
``i`` and ``s``'.
196196
7. ``A``'s designated initializer calls ``completeInit()``, then
197197
returns.

docs/OptimizationTips.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ that value types cannot be included inside an NSArray. Thus when using value
184184
types, the optimizer can remove most of the overhead in Array that is necessary
185185
to handle the possibility of the array being backed an NSArray.
186186

187-
Additionally, In contrast to reference types, value types only need reference
187+
Additionally, in contrast to reference types, value types only need reference
188188
counting if they contain, recursively, a reference type. By using value types
189189
without reference types, one can avoid additional retain, release traffic inside
190190
Array.

docs/OptimizerCountersAnalysis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Optimizer Counter Analysis
22

3-
It is possible possible by means of providing some special command-line
3+
It is possible by means of providing some special command-line
44
options to ask the Swift compiler to produce different statistics about
55
the optimizer counters. Optimizer counters are most typically counters
66
representing different aspects of a SIL representation for a Swift module

0 commit comments

Comments
 (0)