Skip to content

Commit 96cb94b

Browse files
committed
Trivial documentation fix regarding Obj-C ARC objc_arc_weak_reference_unavailable
Fixed incorrect docs that referred to: objc_arc_weak_unavailable when it should be: objc_arc_weak_reference_unavailable Patch by: Sean McBride! llvm-svn: 281227
1 parent 72090c2 commit 96cb94b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/docs/AutomaticReferenceCounting.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -910,10 +910,10 @@ not support ``__weak`` references.
910910
binary compatibility.
911911

912912
A class may indicate that it does not support weak references by providing the
913-
``objc_arc_weak_unavailable`` attribute on the class's interface declaration. A
913+
``objc_arc_weak_reference_unavailable`` attribute on the class's interface declaration. A
914914
retainable object pointer type is **weak-unavailable** if
915915
is a pointer to an (optionally protocol-qualified) Objective-C class ``T`` where
916-
``T`` or one of its superclasses has the ``objc_arc_weak_unavailable``
916+
``T`` or one of its superclasses has the ``objc_arc_weak_reference_unavailable``
917917
attribute. A program is ill-formed if it applies the ``__weak`` ownership
918918
qualifier to a weak-unavailable type or if the value operand of a weak
919919
assignment operation has a weak-unavailable type.

0 commit comments

Comments
 (0)