Skip to content

Commit 66dee5d

Browse files
Luke Adamsjrevels
authored andcommitted
Update manual.md (#115)
Update `replace` to use a pair, and add a semicolon to the end of `teststr`.
1 parent 5826243 commit 66dee5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/manual.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@ suite["utf8"] = BenchmarkGroup(["string", "unicode"])
511511
suite["trig"] = BenchmarkGroup(["math", "triangles"])
512512

513513
# Add some benchmarks to the "utf8" group
514-
teststr = join(rand(MersenneTwister(1), 'a':'d', 10^4))
515-
suite["utf8"]["replace"] = @benchmarkable replace($teststr, "a", "b")
514+
teststr = join(rand(MersenneTwister(1), 'a':'d', 10^4));
515+
suite["utf8"]["replace"] = @benchmarkable replace($teststr, "a" => "b")
516516
suite["utf8"]["join"] = @benchmarkable join($teststr, $teststr)
517517

518518
# Add some benchmarks to the "trig" group

0 commit comments

Comments
 (0)