From 5602c17bef654bf901b7364568ca9d7c3e6a25b1 Mon Sep 17 00:00:00 2001 From: Steve Pentland Date: Tue, 20 Mar 2018 17:06:36 -0400 Subject: [PATCH] Add backticks around benchmark command to render as code --- src/hyperfine/export/markdown.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyperfine/export/markdown.rs b/src/hyperfine/export/markdown.rs index 509a236..d691d83 100644 --- a/src/hyperfine/export/markdown.rs +++ b/src/hyperfine/export/markdown.rs @@ -27,7 +27,7 @@ fn start_table() -> Vec { fn add_table_row(dest: &mut Vec, entry: &ExportEntry) { dest.extend( format!( - "| {} | {:.1} ± {:.1} | {:.1} | {:.1} |\n", + "| `{}` | {:.1} ± {:.1} | {:.1} | {:.1} |\n", entry.command.replace("|", "\\|"), entry.mean * MULTIPLIER, entry.stddev * MULTIPLIER,