Skip to content

Commit

Permalink
Correct english in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
monarchdodra committed Nov 14, 2013
1 parent f0a7d82 commit 4583a87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion std/algorithm.d
Expand Up @@ -2900,7 +2900,7 @@ unittest
//@@@6730@@@ This exists already in std.array, so this declaration, at best, will only create ambiguity.
//unfortunatly, an alias will conflict with the existing splitter in std.algorithm.
//It needs to be removed.
deprecated("std.algorithm.splitter(string) is deprecated in favor of std.algortihm.splitter(string)")
deprecated("Please use std.array.splitter for string specific splitting")
auto splitter(Range)(Range input)
if (isSomeString!Range)
{
Expand Down
7 changes: 4 additions & 3 deletions std/array.d
Expand Up @@ -1388,10 +1388,11 @@ unittest //safety, purity, ctfe ...

/++
Lazily splits the string $(D s) into words, using whitespace as
delimiter.
the delimiter.
This function is string specific and, contrary to $(D
splitter!(std.uni.isWhite)), runs of white spaces will be merged together.
splitter!(std.uni.isWhite)), runs of whitespace will be merged together
(no empty tokens will be produced).
+/
auto splitter(C)(C[] s)
if(isSomeChar!C)
Expand Down Expand Up @@ -1463,7 +1464,7 @@ if(isSomeChar!C)
}

/++
Eagerly Splits $(D s) into an array, using $(D delim) as the delimiter.
Eagerly splits $(D s) into an array, using $(D delim) as the delimiter.
See also: $(XREF algorithm, splitter) for the lazy version of this operator.
+/
Expand Down

0 comments on commit 4583a87

Please sign in to comment.