Merge pull request #953 from 0x-jerry/patch-1

fix: result of `println!`
pull/961/head
Sunface 2 years ago committed by GitHub
commit 357dca66ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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");

Loading…
Cancel
Save