about summary refs log tree commit diff
path: root/src/doc/complement-cheatsheet.md
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-05-27 20:44:58 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-05-28 08:35:41 -0700
commit42aed6bde2fb05a262e21334656cdf91f51744dd (patch)
tree0b7c43f70001fe714a13f95df7e2807a8fdfb85b /src/doc/complement-cheatsheet.md
parent24b1ce1daf9dbf66d04116d0549a48a7610bc614 (diff)
std: Remove format_strbuf!()
This was only ever a transitionary macro.
Diffstat (limited to 'src/doc/complement-cheatsheet.md')
-rw-r--r--src/doc/complement-cheatsheet.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/doc/complement-cheatsheet.md b/src/doc/complement-cheatsheet.md
index 759518b6769..f14b70afc7a 100644
--- a/src/doc/complement-cheatsheet.md
+++ b/src/doc/complement-cheatsheet.md
@@ -23,14 +23,14 @@ let y: int = x.unwrap();
 
 **Int to string, in non-base-10**
 
-Use the `format_strbuf!` syntax extension.
+Use the `format!` syntax extension.
 
 ~~~
 let x: int = 42;
-let y: String = format_strbuf!("{:t}", x);   // binary
-let y: String = format_strbuf!("{:o}", x);   // octal
-let y: String = format_strbuf!("{:x}", x);   // lowercase hexadecimal
-let y: String = format_strbuf!("{:X}", x);   // uppercase hexadecimal
+let y: String = format!("{:t}", x);   // binary
+let y: String = format!("{:o}", x);   // octal
+let y: String = format!("{:x}", x);   // lowercase hexadecimal
+let y: String = format!("{:X}", x);   // uppercase hexadecimal
 ~~~
 
 **String to int, in non-base-10**