[NFC] [Doc] Fix example for AnnotateTypeDocs

Change clang::annotate into clang::annotate_type.

The example will get error like
error: 'annotate' attribute cannot be applied to types
int* [[clang::annotate("category1", "foo", 1)]] f(int[[clang::annotate("category2")]] *);

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D139935
This commit is contained in:
Xiang Li
2023-01-05 16:29:09 -05:00
parent 25d72330ff
commit ad48e9669a

View File

@@ -6705,7 +6705,7 @@ For example:
.. code-block:: c++
int* [[clang::annotate("category1", "foo", 1)]] f(int[[clang::annotate("category2")]] *);
int* [[clang::annotate_type("category1", "foo", 1)]] f(int[[clang::annotate_type("category2")]] *);
The attribute does not have any effect on the semantics of the type system,
neither type checking rules, nor runtime semantics. In particular: