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.


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to