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. 右值引用