summaryrefslogtreecommitdiff
path: root/exercises/test3.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-06-23 10:25:48 +0000
committerbors <bors@rust-lang.org>2019-06-23 10:25:48 +0000
commit5f16469807147a2b4bd2e7cb072e7c3f0e96703f (patch)
tree59bb9dccc31695a74f8c8b316d519e3c0b3f9718 /exercises/test3.rs
parent752bc27e2bf166743be95508fefa9a15b247570b (diff)
parenteb13c2b6afd4ae22370698561478e27c8633a918 (diff)
Auto merge of #171 - miller-time:rustfmt-exercises, r=komaeda
chore: Clean up some formatting in exercises I noticed some formatting that isn't consistent with the `rustfmt` style and tried my best to run it on the files in the exercises directory (which does fail for files that can't compile!), which just caught some minor whitespace things here and there. Note: also can't just apply `rustfmt` blindly because of the blank lines that lead to the hint comments
Diffstat (limited to 'exercises/test3.rs')
-rw-r--r--exercises/test3.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/exercises/test3.rs b/exercises/test3.rs
index e94b069..c8a5578 100644
--- a/exercises/test3.rs
+++ b/exercises/test3.rs
@@ -7,8 +7,12 @@
// you think each value is. That is, add either `string_slice` or `string`
// before the parentheses on each line. If you're right, it will compile!
-fn string_slice(arg: &str) { println!("{}", arg); }
-fn string(arg: String) { println!("{}", arg); }
+fn string_slice(arg: &str) {
+ println!("{}", arg);
+}
+fn string(arg: String) {
+ println!("{}", arg);
+}
fn main() {
("blue");