[clang-tools-extra] r314785 - [clang-tidy] Fixed a small code example in docs. NFC.
Gabor Horvath via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 3 04:40:07 PDT 2017
Author: xazax
Date: Tue Oct 3 04:40:07 2017
New Revision: 314785
URL: http://llvm.org/viewvc/llvm-project?rev=314785&view=rev
Log:
[clang-tidy] Fixed a small code example in docs. NFC.
Modified:
clang-tools-extra/trunk/docs/clang-tidy/checks/misc-string-constructor.rst
Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/misc-string-constructor.rst
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/misc-string-constructor.rst?rev=314785&r1=314784&r2=314785&view=diff
==============================================================================
--- clang-tools-extra/trunk/docs/clang-tidy/checks/misc-string-constructor.rst (original)
+++ clang-tools-extra/trunk/docs/clang-tidy/checks/misc-string-constructor.rst Tue Oct 3 04:40:07 2017
@@ -11,7 +11,7 @@ Examples:
.. code-block:: c++
- std::string('x', 50) str; // should be std::string(50, 'x')
+ std::string str('x', 50); // should be str(50, 'x')
Calling the string-literal constructor with a length bigger than the literal is
suspicious and adds extra random characters to the string.
More information about the cfe-commits
mailing list