diff scripts/strings/strsplit.m @ 18185:1874a5a142ee stable

doc: Fix documentation for strsplit (bug #41062). * strsplit.m: Remove redundant sentence about delimiter del. Don't use unnecessary hyphen in "cell string array" phrasing. Correct typo of "delmiters". * strjoin.m: Don't use unnecessary hyphen in "cell string array" phrasing.
author Rik <rik@octave.org>
date Wed, 01 Jan 2014 17:54:46 -0800
parents d63878346099
children 446c46af4b42
line wrap: on
line diff
--- a/scripts/strings/strsplit.m
+++ b/scripts/strings/strsplit.m
@@ -22,13 +22,13 @@
 ## @deftypefnx {Function File} {[@var{cstr}] =} strsplit (@dots{}, @var{name}, @var{value})
 ## @deftypefnx {Function File} {[@var{cstr}, @var{matches}] =} strsplit (@dots{})
 ## Split the string @var{s} using the delimiters specified by @var{del}
-## and return a cell-string array of sub-strings.  If a delimiter is not
+## and return a cell string array of substrings.  If a delimiter is not
 ## specified the string, @var{s}, is split at whitespace.  The delimiter,
-## @var{del} may be a string, a scalar cell-string, or cell-string array.
-## @var{del} must be a cell-string array.  By default, consecutive
-## delimiters in the input string, @var{s}, are collapsed into one.
+## @var{del} may be a string, a scalar cell string, or cell string array.
+## By default, consecutive delimiters in the input string @var{s} are
+## collapsed into one.
 ##
-## The second output, @var{matches}, returns the delmiters which were matched
+## The second output, @var{matches}, returns the delimiters which were matched
 ## in the original string.
 ##
 ## Example: