Skip to content
Myr

Add backticks around benchmark command to render as code

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Steve Pentland · committed by David Peter · parent 8b933dc · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/hyperfine/export/markdown.rs+1 added-1 removed
25 unmodified lines
26}27fn add_table_row(dest: &mut Vec<u8>, entry: &ExportEntry) {28 dest.extend(29 format!(30 "| {} | {:.1} ± {:.1} | {:.1} | {:.1} |\n",30 "| `{}` | {:.1} ± {:.1} | {:.1} | {:.1} |\n",31 entry.command.replace("|", "\\|"),32 entry.mean * MULTIPLIER,33 entry.stddev * MULTIPLIER,34 entry.min * MULTIPLIER,
4 unmodified lines