diff options
| author | Adrien Tétar <adri-from-59@hotmail.fr> | 2013-11-11 15:26:22 +0100 |
|---|---|---|
| committer | Adrien Tétar <adri-from-59@hotmail.fr> | 2013-11-13 09:32:29 +0100 |
| commit | 5a01dbe67b43660bf1df96074f34a635aad50e56 (patch) | |
| tree | d182e4efa8609bdbe8e4d7e0fc391db5aca34dbd /doc/tutorial-rustpkg.md | |
| parent | 123e0cefb64afd072451e5b3a3c2f9d8f43c7c83 (diff) | |
| download | rust-5a01dbe67b43660bf1df96074f34a635aad50e56.tar.gz rust-5a01dbe67b43660bf1df96074f34a635aad50e56.zip | |
doc: disable parser error highlighting + a few fixes
CodeMirror parser errors are related to #9873.
Diffstat (limited to 'doc/tutorial-rustpkg.md')
| -rw-r--r-- | doc/tutorial-rustpkg.md | 9 |
1 files changed, 4 insertions, 5 deletions
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)); } ~~~ |
