Skip to content

Instantly share code, notes, and snippets.

@kevsmith
Created July 31, 2011 18:25
Show Gist options
  • Select an option

  • Save kevsmith/1117044 to your computer and use it in GitHub Desktop.

Select an option

Save kevsmith/1117044 to your computer and use it in GitHub Desktop.
Test source for doku -- A literate programming tool inspired by docco & marginalia
-module(test).
-include_lib("eunit/include/eunit.hrl").
%% A very silly define indeed.
-define(FOO, 1).
-export([test/0,
test/2]).
%% This function returns 5.
%% It is rather boring.
test() ->
5.
%% This function:
%% 1. Adds two numbers together
%% 1. And is really exciting!
test(X, Y) ->
%% Add two numbers and return the value.
Z = X + Y,
%% This is rocket science
Z.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment