diff mbox

[wwwdocs] Tweak /gcc-5/porting_to.html wording about converting nullptr to bool

Message ID 20150310180554.GB13455@redhat.com
State New
Headers show

Commit Message

Jonathan Wakely March 10, 2015, 6:05 p.m. UTC
Since nullptr always converts to false it doesn't make much sense to
recommend using 'true' instead.

Committed to CVS.
diff mbox

Patch

Index: porting_to.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-5/porting_to.html,v
retrieving revision 1.6
diff -u -r1.6 porting_to.html
--- porting_to.html	10 Mar 2015 17:43:37 -0000	1.6
+++ porting_to.html	10 Mar 2015 17:56:46 -0000
@@ -382,8 +382,8 @@ 
   bool b(nullptr);
 </code></pre>
 
-It is recommended to use <code>true</code>, resp. <code>false</code> keywords
-in such cases.
+It is recommended to use the <code>false</code> keyword instead of
+converting <code>nullptr</code> to <code>bool</code>.
 
 <h3>Return by converting move constructor</h3>