Skip to content

Commit

Permalink
Fix [[clang::coro_wrapper]] documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
usx95 authored Dec 4, 2023
1 parent e9cd197 commit 239bcba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/include/clang/Basic/AttrDocs.td
Original file line number Diff line number Diff line change
Expand Up @@ -7547,7 +7547,7 @@ For example,
Task<int> foo() { return increment(1); } // Error. foo is not a coroutine.

// Fine for a coroutine wrapper to return a CRT.
Task<int> [[clang::coro_wrapper]] foo() { return increment(1); }
[[clang::coro_wrapper]] Task<int> foo() { return increment(1); }

void bar() {
// Invalid. This intantiates a function which returns a CRT but is not marked as
Expand Down

0 comments on commit 239bcba

Please sign in to comment.