Expand the tutorial section on functions

This commit is contained in:
Marijn Haverbeke
2011-11-02 13:49:37 +01:00
parent 769e9b669b
commit d58a9c7346
3 changed files with 39 additions and 18 deletions

View File

@@ -8,7 +8,8 @@ CodeMirror.defineMode("rust", function() {
"lambda": "fn", "type": "type", "tag": "tag", "mod": "mod",
"as": "op", "true": "atom", "false": "atom", "assert": "op", "check": "op",
"claim": "op", "native": "ignore", "unsafe": "ignore", "import": "else-style",
"export": "else-style", "copy": "op", "log": "op", "log_err": "op", "use": "op"
"export": "else-style", "copy": "op", "log": "op", "log_err": "op",
"use": "op", "bind": "op"
};
var typeKeywords = function() {
var keywords = {"fn": "fn", "block": "fn", "obj": "obj"};