From 9bad7891758eef8dcb1efa4221e1d37aa32166dd Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Mon, 1 Jun 2009 00:47:03 +0000 Subject: [PATCH] Fix operator precedence error in documentation. Fixes #2122 [SVN r53520] --- string/doc/usage.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/string/doc/usage.xml b/string/doc/usage.xml index ca100e0..528babe 100644 --- a/string/doc/usage.xml +++ b/string/doc/usage.xml @@ -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"