OSDN Git Service

2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Aug 2004 08:46:15 +0000 (08:46 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Aug 2004 08:46:15 +0000 (08:46 +0000)
* doc/trouble.texi (C++ misunderstandings): Fix example code.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86470 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/doc/trouble.texi

index d6a1db2..00888c0 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
+
+       * doc/trouble.texi (C++ misunderstandings): Fix example code.
+
 2004-08-24  Nick Clifton  <nickc@redhat.com>
 
        * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate defintion
index 39273c3..a546183 100644 (file)
@@ -1064,7 +1064,7 @@ forces it to remain until the end of the scope of the name.  For
 example:
 
 @smallexample
-string& tmp = strfunc ();
+const string& tmp = strfunc ();
 charfunc (tmp.c_str ());
 @end smallexample