aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/doc/trouble.texi2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d6a1db2..00888c0 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/doc/trouble.texi b/gcc/doc/trouble.texi
index 39273c3..a546183 100644
--- a/gcc/doc/trouble.texi
+++ b/gcc/doc/trouble.texi
@@ -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