about summary refs log tree commit diff
path: root/src/rt/rust_run_program.cpp
diff options
context:
space:
mode:
authorBen Kelly <ben@wanderview.com>2013-03-10 13:27:11 -0400
committerBen Kelly <ben@wanderview.com>2013-03-10 17:27:31 -0400
commita36386210293cf12f771adb6bc775a45cab6b4da (patch)
treee44a5524d330dbc9939493c973b8ff9c53975143 /src/rt/rust_run_program.cpp
parent267f6c212f471c100060edaaf85a26e9a7ba820f (diff)
downloadrust-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