diff --git a/src/hello/print.md b/src/hello/print.md index e09f128ebc..89d2aa0de3 100644 --- a/src/hello/print.md +++ b/src/hello/print.md @@ -39,7 +39,7 @@ fn main() { println!("{number:>width$}", number=1, width=6); // You can pad numbers with extra zeroes. This will output "000001". - println!("{number:>0width$}", number=1, width=6); + println!("{number:0>width$}", number=1, width=6); // Rust even checks to make sure the correct number of arguments are // used.