Skip to content

Commit

Permalink
Add default introductory code example (exercism#143)
Browse files Browse the repository at this point in the history
* Add default introductory code example

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.

Note that we're aiming for 10 lines and a max-width of 40 columns.
This solution has 13 lines, so we may want to adjust it.

* Adjusting line-length of snippet.
  • Loading branch information
Katrina Owen authored and arcuru committed Aug 26, 2017
1 parent 70e33d9 commit 39b9b39
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/SNIPPET.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include "hello_world.h"

namespace hello_world {

std::string hello()
{
return "Hello, World!";
}

}

0 comments on commit 39b9b39

Please sign in to comment.