diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-07-13 20:44:19 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-07-13 20:44:31 -0700 |
commit | d855af1fba7868a4cbee848d316f6394a8e1d4a0 (patch) | |
tree | 96b09463995ebf8410e34dfcdb76c0edbe41fe3b /Readme.md | |
parent | dfd2ed38f24b82da102d7fd899fa58bb0a791023 (diff) | |
download | mu-d855af1fba7868a4cbee848d316f6394a8e1d4a0.tar.gz |
1774
Diffstat (limited to 'Readme.md')
-rw-r--r-- | Readme.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Readme.md b/Readme.md index 419dfe23..0c69fd83 100644 --- a/Readme.md +++ b/Readme.md @@ -79,7 +79,7 @@ compiling. As a sneak peek, here's how you compute factorial in Mu: -![code example](http://i.imgur.com/QbZMprn.png) +![code example](html/factorial.png) Mu functions or 'recipes' are lists of instructions, one to a line. Each instruction operates on some *ingredients* and returns some *results*. @@ -167,7 +167,7 @@ organize your names into spaces. At the start of each function (like `factorial` above), set its *default space*: ```nim - default-space:address:array:location <- new location:type, 30:literal + new-default-space ``` Without this line, all variables in the function will be *global*, something @@ -245,7 +245,7 @@ inserting code at them. ```nim recipe factorial [ - default-space:address:array:location <- new location:type, 30:literal + new-default-space n:number <- next-ingredient { +base-case: |