Skip to content

Commit 4b23606

Browse files
[clang] Proofread AutomaticReferenceCounting.rst (llvm#155071)
1 parent cb11420 commit 4b23606

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

clang/docs/AutomaticReferenceCounting.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ following rules apply:
740740

741741
* If the qualifier is so applied at a position in the declaration
742742
where the next-innermost declarator is a function declarator, and
743-
there is an block declarator within that function declarator, then
743+
there is a block declarator within that function declarator, then
744744
the qualifier applies instead to that block declarator and this rule
745745
is considered afresh beginning from the new position.
746746

@@ -924,7 +924,7 @@ not support ``__weak`` references.
924924

925925
A class may indicate that it does not support weak references by providing the
926926
``objc_arc_weak_reference_unavailable`` attribute on the class's interface declaration. A
927-
retainable object pointer type is **weak-unavailable** if
927+
retainable object pointer type is **weak-unavailable** if it
928928
is a pointer to an (optionally protocol-qualified) Objective-C class ``T`` where
929929
``T`` or one of its superclasses has the ``objc_arc_weak_reference_unavailable``
930930
attribute. A program is ill-formed if it applies the ``__weak`` ownership
@@ -1129,7 +1129,7 @@ be the same for identical code.
11291129
C and C++ while still automatically managing memory. While it is
11301130
usually simpler and more idiomatic to use Objective-C objects for
11311131
secondary data structures, doing so can introduce extra allocation
1132-
and message-send overhead, which can cause to unacceptable
1132+
and message-send overhead, which can cause unacceptable
11331133
performance. Using structs can resolve some of this tension.
11341134

11351135
``__autoreleasing`` is forbidden because it is treacherous to rely
@@ -1446,7 +1446,7 @@ ill-formed.
14461446
Template arguments
14471447
^^^^^^^^^^^^^^^^^^
14481448

1449-
If a template argument for a template type parameter is an retainable object
1449+
If a template argument for a template type parameter is a retainable object
14501450
owner type that does not have an explicit ownership qualifier, it is adjusted
14511451
to have ``__strong`` qualification. This adjustment occurs regardless of
14521452
whether the template argument was deduced or explicitly specified.
@@ -2064,7 +2064,7 @@ You can test if your compiler has support for ``objc_externally_retained`` with
20642064
``self``
20652065
--------
20662066
2067-
The ``self`` parameter variable of an non-init Objective-C method is considered
2067+
The ``self`` parameter variable of a non-init Objective-C method is considered
20682068
:ref:`externally-retained <arc.misc.externally_retained>` by the implementation.
20692069
It is undefined behavior, or at least dangerous, to cause an object to be
20702070
deallocated during a message send to that object. In an init method, ``self``
@@ -2334,7 +2334,7 @@ emit, which are described in the remainder of this section.
23342334
23352335
* the machine code to do so is significantly smaller,
23362336
* it is much easier to recognize the C functions in the ARC optimizer, and
2337-
* a sufficient sophisticated runtime may be able to avoid the message send in
2337+
* a sufficiently sophisticated runtime may be able to avoid the message send in
23382338
common cases.
23392339
23402340
Several other of these functions are "fused" operations which can be

0 commit comments

Comments
 (0)