Skip to content

Commit 4f23f6d

Browse files
committed
Pass sample code in through rustfmt
Some of the sample code in the "Get Started" tutorial aligned stuff around equal signs. rustfmt would prefer it be formatted without the alignment.
1 parent ed711d7 commit 4f23f6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/learn/get-started.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ ferris-says = "0.1"</code></pre>
9090
use std::io::{stdout, BufWriter};
9191

9292
fn main() {
93-
let stdout = stdout();
93+
let stdout = stdout();
9494
let message = String::from("Hello fellow Rustaceans!");
95-
let width = message.chars().count();
95+
let width = message.chars().count();
9696

9797
let mut writer = BufWriter::new(stdout.lock());
9898
say(message.as_bytes(), width, &mut writer).unwrap();

0 commit comments

Comments
 (0)