From: Oliver Middleton Date: Wed, 10 Feb 2016 14:53:42 +0000 (+0000) Subject: Fix documentation example in the book X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=cff81d724fa73003fe7e589a9433db33dde742a6;p=rust.git Fix documentation example in the book The code sections shouldn't be inside a ```text block. --- diff --git a/src/doc/book/documentation.md b/src/doc/book/documentation.md index ede3100194e..8d1e58ac173 100644 --- a/src/doc/book/documentation.md +++ b/src/doc/book/documentation.md @@ -319,7 +319,7 @@ our source code: ```text First, we set `x` to five: - ```text + ```rust let x = 5; # let y = 6; # println!("{}", x + y); @@ -327,7 +327,7 @@ our source code: Next, we set `y` to six: - ```text + ```rust # let x = 5; let y = 6; # println!("{}", x + y); @@ -335,7 +335,7 @@ our source code: Finally, we print the sum of `x` and `y`: - ```text + ```rust # let x = 5; # let y = 6; println!("{}", x + y);