Better variable naming.

This commit is contained in:
H. S. Teoh 2016-01-26 16:47:43 -08:00
parent 5517fe1bcd
commit 6a98d6ba03

View file

@ -2207,13 +2207,13 @@ template canFind(alias pred="a == b")
*/ */
@safe unittest @safe unittest
{ {
auto words1 = [ auto words = [
"apple", "apple",
"beeswax", "beeswax",
"cardboard" "cardboard"
]; ];
assert(!canFind(words1, "bees")); assert(!canFind(words, "bees"));
assert( canFind!((string a, string b) => a.startsWith(b))(words1, "bees")); assert( canFind!((string a, string b) => a.startsWith(b))(words, "bees"));
} }
@safe unittest @safe unittest