From 30ec767a246a59eb56f6d18b3310af75d6245cd1 Mon Sep 17 00:00:00 2001 From: Isaac Ge Date: Mon, 20 Jul 2015 15:21:14 +0800 Subject: [PATCH] =?UTF-8?q?others.rst:=20=E6=9B=B4=E6=96=B0=E7=AB=A0?= =?UTF-8?q?=E8=8A=82=E3=80=8C5.1.=20=E5=BC=95=E7=94=A8=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 托 @innocentim 之助,完善一处翻译,在此致谢 顺便消灭一处 typo --- google-cpp-styleguide/others.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/google-cpp-styleguide/others.rst b/google-cpp-styleguide/others.rst index a08194a..241dc0d 100644 --- a/google-cpp-styleguide/others.rst +++ b/google-cpp-styleguide/others.rst @@ -32,9 +32,9 @@ 有时候,在输入形参中用 ``const T*`` 指针比 ``const T&`` 更明智。比如: * 您会传 null 指针。 - * 函数会保存指针值或引用到形参上。(acgtyrant 注:我理解不通这句,总之应该是原文字面上的意思) + * 函数要把指针或对地址的引用赋值给输入形参。 - 总之大多时候输入形参往往是 ``const T&``. 若用 ``const T&`` 说明输入另有处理。所以若您要用 ``const T*``, 则应有理有据,否则会害得读者误解。 + 总之大多时候输入形参往往是 ``const T&``. 若用 ``const T*`` 说明输入另有处理。所以若您要用 ``const T*``, 则应有理有据,否则会害得读者误解。 5.2. 右值引用