diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-02-06 13:02:06 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-02-06 16:45:22 -0800 |
| commit | 1508b6e953fd7f689a4ef7c0c01e989f942b695a (patch) | |
| tree | 90f4d4fdab6c9257ff25745ea3ee3f999b27ea48 /src/doc | |
| parent | 66b9c35654d1e7716ab5ef6236c6cf308818e71c (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.md | 4 |
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() {} |
