diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-03-25 15:21:02 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2013-03-26 14:18:48 +0100 |
| commit | 5b10f4e117479afbf1cd69e471e4a63995187db5 (patch) | |
| tree | d5f6bfab66b3ceb7df02c2dc93c818a3fc4ca773 /src/rt/rust_run_program.cpp | |
| parent | 125cdf52cd280ed8e82e02eedffa3dd8a0cbe42a (diff) | |
| download | rust-5b10f4e117479afbf1cd69e471e4a63995187db5.tar.gz rust-5b10f4e117479afbf1cd69e471e4a63995187db5.zip | |
Miscellaneous documentation additions.
Added notes explaining how [expr, ..expr] form is used, targeted at
individuals like me who thought it was more general and handled
dynamic repeat expressions. (I left a TODO for this section in a
comment, but perhaps that is bad form for the manual...)
Added example of `do` syntax with a function of arity > 1; yes, one
should be able to derive this from the text above it, but it is still
a useful detail to compare and contrast against the arity == 1 case.
Added example of using for expression over a uint range, since someone
who is most used to write `for(int i; i < lim; i++) { ... }` will
likely want to know how to translate that form (regardless of whether
it happens to be good style or not for their use-case).
Added note about the semi-strange meaning of "fixed size" of vectors
in the vector type section.
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions
