diff options
| author | Ben Kelly <ben@wanderview.com> | 2013-03-10 13:27:11 -0400 |
|---|---|---|
| committer | Ben Kelly <ben@wanderview.com> | 2013-03-10 17:27:31 -0400 |
| commit | a36386210293cf12f771adb6bc775a45cab6b4da (patch) | |
| tree | e44a5524d330dbc9939493c973b8ff9c53975143 /src/rt/rust_run_program.cpp | |
| parent | 267f6c212f471c100060edaaf85a26e9a7ba820f (diff) | |
| download | rust-a36386210293cf12f771adb6bc775a45cab6b4da.tar.gz rust-a36386210293cf12f771adb6bc775a45cab6b4da.zip | |
Fix formatting and errors in std::getopts example.
There were three issues effecting the example in the getopts rustdoc: 1. The blockquote was incorrectly formatted. Fixed by switching to using an explicit markdown code section with ```. 2. The `fail fail_str(f)` would not compile. Fixed by using `fail!()` instead of `fail`. 3. The line `matches.free[0]` produced a compile error about moving from an immutable vector. Fix by using `copy`.
Diffstat (limited to 'src/rt/rust_run_program.cpp')
0 files changed, 0 insertions, 0 deletions
