From 4f0901addd2944449e7e35e655afd0d8b6b96d44 Mon Sep 17 00:00:00 2001 From: Tobias Pfeiffer Date: Sun, 10 Dec 2023 10:11:36 +0100 Subject: [PATCH] Properly indent code for highlighting See #57 by @kianmeng --- lib/benchee/formatters/html.ex | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/benchee/formatters/html.ex b/lib/benchee/formatters/html.ex index d36facf..971fc5f 100644 --- a/lib/benchee/formatters/html.ex +++ b/lib/benchee/formatters/html.ex @@ -5,19 +5,19 @@ defmodule Benchee.Formatters.HTML do ## Examples - list = Enum.to_list(1..10_000) - map_fun = fn(i) -> [i, i * i] end - - Benchee.run( - %{ - "flat_map" => fn -> Enum.flat_map(list, map_fun) end, - "map.flatten" => fn -> list |> Enum.map(map_fun) |> List.flatten() end - }, - formatters: [ - Benchee.Formatters.Console, - {Benchee.Formatters.HTML, file: "samples_output/flat_map.html"} - ] - ) + list = Enum.to_list(1..10_000) + map_fun = fn(i) -> [i, i * i] end + + Benchee.run( + %{ + "flat_map" => fn -> Enum.flat_map(list, map_fun) end, + "map.flatten" => fn -> list |> Enum.map(map_fun) |> List.flatten() end + }, + formatters: [ + Benchee.Formatters.Console, + {Benchee.Formatters.HTML, file: "samples_output/flat_map.html"} + ] + ) """ @behaviour Benchee.Formatter