From c467fc68b4b9f001f5ce12c84e0e7cf4fe33b43c Mon Sep 17 00:00:00 2001 From: mautamu Date: Wed, 28 Apr 2021 20:28:32 -0500 Subject: [PATCH] Fix Typo in LRBE section; closes #1434 --- src/hello/print.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.