diff options
author | Jonathan Wakely <redi@gcc.gnu.org> | 2004-08-24 09:46:15 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2004-08-24 09:46:15 +0100 |
commit | 748fa2945501ba05567634ebf81b57dfe990504d (patch) | |
tree | 274e94b65e6a3f472d26ae1fee987b60d3827247 /gcc | |
parent | 3d595b468882605b66e683fb4178dd2ba7dc76b3 (diff) | |
download | gcc-748fa2945501ba05567634ebf81b57dfe990504d.zip gcc-748fa2945501ba05567634ebf81b57dfe990504d.tar.gz gcc-748fa2945501ba05567634ebf81b57dfe990504d.tar.bz2 |
trouble.texi (C++ misunderstandings): Fix example code.
2004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
* doc/trouble.texi (C++ misunderstandings): Fix example code.
From-SVN: r86470
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/doc/trouble.texi | 2 |
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 |