Skip to content

Commit

Permalink
Fixed Readme syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Barnhill authored and Bill Barnhill committed Dec 21, 2013
1 parent b81221e commit eb96b75
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ in your own applications.

Once the lsys application is started you can use like so:

> {ok, Config} = lsys:read_config([code:priv_dir(lsys)], "test1.lsys"),
> Axiom = "S0",
> Iters = 3,
> lsys_srv:generate(Iters, Axiom, Config).
```
{ok, Config} = lsys:read_config([code:priv_dir(lsys)], "test1.lsys"),
Axiom = "S0",
Iters = 3,
lsys_srv:generate(Iters, Axiom, Config).
```
Alternatively you can use without a gen_server or supervision tree:

> {ok, Config} = lsys:read_config(["priv"], "test1.lsys"),
> Axiom = "S0",
> Iters = 3,
> lsys:generate(Iters, Axiom, Config).
```
{ok, Config} = lsys:read_config(["priv"], "test1.lsys"),
Axiom = "S0",
Iters = 3,
lsys:generate(Iters, Axiom, Config).
```

0 comments on commit eb96b75

Please sign in to comment.