about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-02-06 13:02:06 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-06 16:45:22 -0800
commit1508b6e953fd7f689a4ef7c0c01e989f942b695a (patch)
tree90f4d4fdab6c9257ff25745ea3ee3f999b27ea48 /src/doc
parent66b9c35654d1e7716ab5ef6236c6cf308818e71c (diff)
Add some doc examples to lib{green,native}
"How do I start in libX" is a common question that I've seen, so I figured
putting the examples in as many places as possible is probably a good idea.
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/guide-runtime.md4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/doc/guide-runtime.md b/src/doc/guide-runtime.md
index b6a54b042e9..40319c1ec4f 100644
--- a/src/doc/guide-runtime.md
+++ b/src/doc/guide-runtime.md
@@ -236,9 +236,7 @@ extern mod green;
 
 #[start]
 fn start(argc: int, argv: **u8) -> int {
-    green::start(argc, argv, proc() {
-        main();
-    })
+    green::start(argc, argv, main)
 }
 
 fn main() {}