From ab39fb8c86074938d9745ce35ab42f23248cc45e Mon Sep 17 00:00:00 2001 From: Jerry Wang Date: Tue, 5 Jul 2022 16:16:43 +0800 Subject: [PATCH] fix: result of `println!` --- src/basic/formatted-output.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/basic/formatted-output.md b/src/basic/formatted-output.md index 9270deae..06925d3e 100644 --- a/src/basic/formatted-output.md +++ b/src/basic/formatted-output.md @@ -304,7 +304,7 @@ fn main() { // 以下全部都会补齐5个字符的长度 // 左对齐 => Hello x ! println!("Hello {:<5}!", "x"); - // 右对齐 => Hello x + // 右对齐 => Hello x! println!("Hello {:>5}!", "x"); // 居中对齐 => Hello x ! println!("Hello {:^5}!", "x");