diff --git a/docs/SNIPPET.txt b/docs/SNIPPET.txt new file mode 100644 index 00000000..15964819 --- /dev/null +++ b/docs/SNIPPET.txt @@ -0,0 +1,7 @@ +module helloworld; + +import std.format; + +string hello(const char[] s = "World") { + return format("Hello, %s!", s); +}