From 7e7370756ce016ca196f96ce0fe595df9434a8ba Mon Sep 17 00:00:00 2001 From: David Alber Date: Sun, 14 Jan 2018 16:51:31 -0800 Subject: [PATCH] Wrapping `control_brace_style="ClosingNextLine"` snippet in function --- Configurations.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Configurations.md b/Configurations.md index ace5a958cab4..85b0d9b9c148 100644 --- a/Configurations.md +++ b/Configurations.md @@ -556,11 +556,13 @@ fn main() { #### `"ClosingNextLine"`: ```rust -if lorem { - println!("ipsum!"); -} -else { - println!("dolor!"); +fn main() { + if lorem { + println!("ipsum!"); + } + else { + println!("dolor!"); + } } ```