about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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();
     }