From dda7f610a054e6a97a63588380ffcd5e11a4bd03 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Wed, 6 Apr 2011 13:03:40 +0200 Subject: [PATCH] Minor algorithm cheatsheet fixes. --- std/algorithm.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/std/algorithm.d b/std/algorithm.d index 311b80ab4..79d45070a 100644 --- a/std/algorithm.d +++ b/std/algorithm.d @@ -83,7 +83,7 @@ $(TR $(TDNW $(LREF boyerMooreFinder)) $(TD $(D find("hello world", boyerMooreFinder("or"))) returns $(D "orld") using the $(LUCKY Boyer-Moore _algorithm).) ) -$(TR $(TDNW $(LREF canFind)) $(TD $(D find("hello world", +$(TR $(TDNW $(LREF canFind)) $(TD $(D canFind("hello world", "or")) returns $(D true).) ) $(TR $(TDNW $(LREF count)) $(TD Counts elements that are equal @@ -179,8 +179,8 @@ filter), but also provides $(D back) and $(D popBack) at a small increase in cost.) ) $(TR $(TDNW $(LREF group)) $(TD $(D group([5, 2, 2, 3, 3])) -returns a range containing the tuples $(D tuple(5, 1)), $(D tuple(5, -1)), $(D tuple(2, 2)), and $(D tuple(3, 2)).) +returns a range containing the tuples $(D tuple(5, 1)), +$(D tuple(2, 2)), and $(D tuple(3, 2)).) ) $(TR $(TDNW $(LREF joiner)) $(TD $(D joiner(["hello", "world!"], ";")) returns a range that iterates over the characters $(D