Mercurial > hg > octave-nkf
diff scripts/strings/strrep.m @ 8431:99b6066fccb6
strrep.m: specify what is the return value
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Fri, 26 Dec 2008 22:42:52 +0100 |
parents | 83a8781b529d |
children | 502e58a0d44f |
line wrap: on
line diff
--- a/scripts/strings/strrep.m +++ b/scripts/strings/strrep.m @@ -20,7 +20,7 @@ ## -*- texinfo -*- ## @deftypefn {Function File} {} strrep (@var{s}, @var{x}, @var{y}) ## Replaces all occurrences of the substring @var{x} of the string @var{s} -## with the string @var{y}. For example, +## with the string @var{y} and returns the result. For example, ## ## @example ## strrep ("This is a test string", "is", "&%$") @@ -95,4 +95,3 @@ %!error strrep (); %!error strrep ("foo", "bar", 3, 4); -