[NFC] [Doc] Fix example for AnnotateTypeDocs
authorXiang Li <python3kgae@outlook.com>
Thu, 5 Jan 2023 21:29:09 +0000 (16:29 -0500)
committerXiang Li <python3kgae@outlook.com>
Thu, 5 Jan 2023 21:32:02 +0000 (16:32 -0500)
commitad48e9669a80e05c55e35970461b34f04dc0f117
treed0778d42c9dc7bff92b065c526d4f1d8a9d62ba0
parent25d72330ff8b4257a1c1729d5ec448f0f27dd18a
[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
clang/include/clang/Basic/AttrDocs.td