From 5a01dbe67b43660bf1df96074f34a635aad50e56 Mon Sep 17 00:00:00 2001 From: Adrien Tétar Date: Mon, 11 Nov 2013 15:26:22 +0100 Subject: doc: disable parser error highlighting + a few fixes CodeMirror parser errors are related to #9873. --- doc/tutorial-rustpkg.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'doc/tutorial-rustpkg.md') diff --git a/doc/tutorial-rustpkg.md b/doc/tutorial-rustpkg.md index fb15e0c0cf2..daacd4ab76b 100644 --- a/doc/tutorial-rustpkg.md +++ b/doc/tutorial-rustpkg.md @@ -27,7 +27,6 @@ $ rustc main.rs main.rs:1:0: 1:17 error: can't find crate for `hello` main.rs:1 extern mod hello; ^~~~~~~~~~~~~~~~~ - ~~~~ This makes sense, as we haven't gotten it from anywhere yet! Luckily for us, @@ -216,7 +215,7 @@ a function that can be sensibly tested: #[license = "MIT"]; pub fn is_even(i: uint) -> bool { - i % 2 == 0 + i % 2 == 0 } ~~~ @@ -230,9 +229,9 @@ use hello::is_even; #[test] fn test_is_even() { - assert!(is_even(0)); - assert!(!is_even(1)); - assert!(is_even(2)); + assert!(is_even(0)); + assert!(!is_even(1)); + assert!(is_even(2)); } ~~~ -- cgit 1.4.1-3-g733a5