Skip to content

Commit

Permalink
Add default introductory code example
Browse files Browse the repository at this point in the history
Instead of having logic for a fallback in the backend, we're choosing a
default for the snippet file.

For tracks that have core exercises, we pick the first core exercise.
For tracks without these, we pick the first exercise listed in the config.
  • Loading branch information
Katrina Owen committed Sep 3, 2017
1 parent 0461337 commit 7a5699d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/SNIPPET.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module helloworld;

import std.format;

string hello(const char[] s = "World") {
return format("Hello, %s!", s);
}

0 comments on commit 7a5699d

Please sign in to comment.