diff --git a/hands-on_dlang.md b/hands-on_dlang.md index 075fd7a..a4ca368 100644 --- a/hands-on_dlang.md +++ b/hands-on_dlang.md @@ -13,7 +13,7 @@ * [Extension setup](#extension-setup) * [Basics](#basics) * [Hello World](#hello-world) - * [Imports and modules](#imports-and-modules) + * [Imports and modules](#imports-and-modules)G * [Selective imports](#selective-imports) * [Scoped imports](#scoped-imports) * [Imports match files and directories](#imports-match-files-and-directories) @@ -181,10 +181,9 @@ symbols are only available inside that scope. Here is an alternative version of the hello world program: ```D -void main() -{ -import std.stdio: writeln; -writeln("Hello World"); +void main() { + import std.stdio: writeln; + writeln("Hello World"); } /* writeln is not available outside of the main function */ ```