From d59677128994c25224922a904537eb7bd27ce250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=BA=E4=BC=A4=E5=B8=9D?= <2595715768@qq.com> Date: Fri, 4 Apr 2025 22:28:37 +0800 Subject: [PATCH] fix: function return is i + 1 --- docs/auto.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/auto.md b/docs/auto.md index a63fd9b..0e53cb1 100644 --- a/docs/auto.md +++ b/docs/auto.md @@ -402,7 +402,7 @@ int &func() { int i; decltype(auto) func() { - return i; + return i + 1; } // 等价于: decltype((i + 1)) func() {