Skip to content

Commit

Permalink
std.algo.cmp.max docu
Browse files Browse the repository at this point in the history
* Params
* Returns

quickfur

review fixes

comma

quickfur

klickverbot
  • Loading branch information
burner committed Mar 21, 2015
1 parent e1d2c9e commit 0634a22
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion std/algorithm/comparison.d
Expand Up @@ -1194,7 +1194,15 @@ levenshteinDistanceAndPath(alias equals = "a == b", Range1, Range2)

// max
/**
Returns the maximum of the passed-in values.
Iterates the passed arguments and return the maximum value.
Params:
args = The values to select the maximum from. At least two arguments must
be passed.
Returns:
The maximum of the passed-in args. The type of the returned value is
the type among the passed arguments that is able to store the largest value.
*/
MaxType!T max(T...)(T args)
if (T.length >= 2)
Expand Down

0 comments on commit 0634a22

Please sign in to comment.