about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-02-15 22:20:38 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-02-16 03:56:52 +0530
commitcea2bbfe27707becaacad1ce64b835b408c0ccf8 (patch)
tree1951ddaed4c60868e9f1bfe148ca5a84448d53b8 /src
parentf0f8be2a2e0aab2efef42208e19886790a0742f5 (diff)
downloadrust-cea2bbfe27707becaacad1ce64b835b408c0ccf8.tar.gz
rust-cea2bbfe27707becaacad1ce64b835b408c0ccf8.zip
Fix grammar
Diffstat (limited to 'src')
-rw-r--r--src/doc/grammar.md2
-rw-r--r--src/doc/trpl/ffi.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/doc/grammar.md b/src/doc/grammar.md
index 9124328b8ee..d7a29ea5309 100644
--- a/src/doc/grammar.md
+++ b/src/doc/grammar.md
@@ -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
 + -
diff --git a/src/doc/trpl/ffi.md b/src/doc/trpl/ffi.md
index 5375a8aa46b..f2b95f19edc 100644
--- a/src/doc/trpl/ffi.md
+++ b/src/doc/trpl/ffi.md
@@ -439,7 +439,7 @@ fn main() {
     unsafe { 
         rl_prompt = prompt.as_ptr();
 
-        println!("{}", rl_prompt);
+        println!("{:?}", rl_prompt);
 
         rl_prompt = ptr::null();
     }