diff --git a/source/declarations.tex b/source/declarations.tex index b7f1c66f26..5f72b5f0f4 100644 --- a/source/declarations.tex +++ b/source/declarations.tex @@ -2182,7 +2182,7 @@ decltype(auto) x6d = { 1, 2 }; // error: \tcode{\{ 1, 2 \}} is not an expression auto *x7a = &i; // \tcode{decltype(x7a)} is \tcode{int*} decltype(auto)*x7d = &i; // error: declared type is not plain \tcode{decltype(auto)} -auto f1(int x) -> decltype((x)) { return (x); } // return type is \tcode{int\&} +auto f1(int x) -> decltype((x)); // return type is \tcode{int\&} auto f2(int x) -> decltype(auto) { return (x); } // return type is \tcode{int\&\&} \end{codeblock} \end{example}