diff --git a/examples/videos/deno_bench.md b/examples/videos/deno_bench.md index 1dbaa317c..01ed8bb36 100644 --- a/examples/videos/deno_bench.md +++ b/examples/videos/deno_bench.md @@ -114,8 +114,8 @@ benchmark reading just the first word? If we use the `bench` const FILENAME = "./Releases.md"; Deno.bench("get first word", (b) => { - b.start(); const file = Deno.readTextFileSync(FILENAME); + b.start(); const firstWord = file.split(" ")[0]; b.end(); });