From a658e4e6dd3817b7f96379d0635ca918fbae678c Mon Sep 17 00:00:00 2001 From: Felix Rabe Date: Fri, 12 Jul 2019 22:20:48 +0200 Subject: [PATCH 1/2] panic.md: Fix highlighting A "```bash" section is only meant for Bash code, not for transcripts of interactive sessions including command output. --- src/std/panic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/std/panic.md b/src/std/panic.md index e9005ceb07..94f782166c 100644 --- a/src/std/panic.md +++ b/src/std/panic.md @@ -34,7 +34,7 @@ fn main() { Let's check that `panic!` doesn't leak memory. -```bash +``` $ rustc panic.rs && valgrind ./panic ==4401== Memcheck, a memory error detector ==4401== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. From e7b2dcfcddf09b512d993dc1ddb9ab2279a5634e Mon Sep 17 00:00:00 2001 From: Felix Rabe Date: Mon, 15 Jul 2019 17:38:49 +0200 Subject: [PATCH 2/2] panic.md: Use correct info string for fenced code --- src/std/panic.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/std/panic.md b/src/std/panic.md index 94f782166c..cf220e8203 100644 --- a/src/std/panic.md +++ b/src/std/panic.md @@ -34,7 +34,7 @@ fn main() { Let's check that `panic!` doesn't leak memory. -``` +```text $ rustc panic.rs && valgrind ./panic ==4401== Memcheck, a memory error detector ==4401== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.