|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53520 - trunk/libs/algorithm/string/doc
From: steven_at_[hidden]
Date: 2009-05-31 20:47:05
Author: steven_watanabe
Date: 2009-05-31 20:47:03 EDT (Sun, 31 May 2009)
New Revision: 53520
URL: http://svn.boost.org/trac/boost/changeset/53520
Log:
Fix operator precedence error in documentation. Fixes #2122
Text files modified:
trunk/libs/algorithm/string/doc/usage.xml | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/libs/algorithm/string/doc/usage.xml
==============================================================================
--- trunk/libs/algorithm/string/doc/usage.xml (original)
+++ trunk/libs/algorithm/string/doc/usage.xml 2009-05-31 20:47:03 EDT (Sun, 31 May 2009)
@@ -130,7 +130,7 @@
string str1("command.com");
cout
<< str1
- << is_executable("command.com")? "is": "is not"
+ << (is_executable("command.com")? "is": "is not")
<< "an executable"
<< endl; // prints "command.com is an executable"
@@ -138,7 +138,7 @@
char text1[]="hello world!";
cout
<< text1
- << all( text1, is_lower() )? "is": "is not"
+ << (all( text1, is_lower() )? "is": "is not")
<< " written in the lower case"
<< endl; // prints "hello world! is written in the lower case"
</programlisting>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk