Opened 13 years ago

Closed 12 years ago

#3860 closed Bugs (fixed)

Example 'bug' - "goodbye WORLD!"?

Reported by: olafvdspek@… Owned by: Pavol Droba
Milestone: Boost 1.42.0 Component: string_algo
Version: Boost 1.41.0 Severity: Problem
Keywords: Cc:

Description

http://www.boost.org/doc/libs/1_41_0/doc/html/string_algo/usage.html#id1701017

str2 == "goodbye world!"

Shouldn't this be "goodbye WORLD!"?

Change History (3)

comment:1 by olafvdspek@…, 13 years ago

string str3=trim_right_copy(str2); str3 == " hello world!"

Should be:

string str3=trim_right_copy(str1); str3 == " hello world!"

comment:2 by Steven Watanabe, 13 years ago

"goodbye world!" is correct. Note the use of to_lower_copy.

The second documentation bug appears to be a valid bug.

comment:3 by Steven Watanabe, 12 years ago

Resolution: fixed
Status: newclosed

(In [62692]) Trim the correct string. Fixes #3860

Note: See TracTickets for help on using tickets.