]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
trouble.texi (C++ misunderstandings): Fix example code.
authorJonathan Wakely <redi@gcc.gnu.org>
Sun, 29 Aug 2004 14:39:25 +0000 (15:39 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sun, 29 Aug 2004 14:39:25 +0000 (15:39 +0100)
2003-08-29  Jonathan Wakely  <redi@gcc.gnu.org>

* doc/trouble.texi (C++ misunderstandings): Fix example code.

From-SVN: r86725

gcc/ChangeLog
gcc/doc/trouble.texi

index 3fadd5ea96d53d4f34caca7dd662452cdd3cc365..0c6e389058218a0d0b6c6c4e625719b91f035bc7 100644 (file)
@@ -1,3 +1,7 @@
+2003-08-29  Jonathan Wakely  <redi@gcc.gnu.org>
+
+       * doc/trouble.texi (C++ misunderstandings): Fix example code.
+
 2004-08-26  Richard Henderson  <rth@redhat.com>
 
        PR target/15718
index a7e42000bb72ddcb8505bce68f9926da52708a0c..96057a1d263705a1bcf0bd752ef0681738e987d6 100644 (file)
@@ -943,7 +943,7 @@ forces it to remain until the end of the scope of the name.  For
 example:
 
 @example
-string& tmp = strfunc ();
+const string& tmp = strfunc ();
 charfunc (tmp.c_str ());
 @end example