]> git.lizzy.rs Git - rust.git/commitdiff
Fix grammar
authorManish Goregaokar <manishsmail@gmail.com>
Sun, 15 Feb 2015 16:50:38 +0000 (22:20 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Sun, 15 Feb 2015 22:26:52 +0000 (03:56 +0530)
src/doc/grammar.md
src/doc/trpl/ffi.md

index 9124328b8eee92e5e6777e07cb11d3b1e9b8fb2c..d7a29ea530952a4f28a934c0834fce2558f7e845 100644 (file)
@@ -568,7 +568,7 @@ binop_expr : expr binop expr ;
 The precedence of Rust binary operators is ordered as follows, going from
 strong to weak:
 
-```
+```text
 * / %
 as
 + -
index 5375a8aa46b30577a67c321cc4dbc570e989734f..f2b95f19edce21336c808454969cc3ff27f50ac5 100644 (file)
@@ -439,7 +439,7 @@ fn main() {
     unsafe { 
         rl_prompt = prompt.as_ptr();
 
-        println!("{}", rl_prompt);
+        println!("{:?}", rl_prompt);
 
         rl_prompt = ptr::null();
     }