Skip to content

Commit

Permalink
Enclose code in documentation in backticks
Browse files Browse the repository at this point in the history
  • Loading branch information
kud1ing authored and huonw committed Sep 26, 2013
1 parent 930f779 commit d798e00
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libextra/getopts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

//! Simple getopt alternative.
//!
//! Construct a vector of options, either by using reqopt, optopt, and optflag
//! or by building them from components yourself, and pass them to getopts,
//! along with a vector of actual arguments (not including argv[0]). You'll
//! Construct a vector of options, either by using `reqopt`, `optopt`, and `optflag`
//! or by building them from components yourself, and pass them to `getopts`,
//! along with a vector of actual arguments (not including `argv[0]`). You'll
//! either get a failure code back, or a match. You'll have to verify whether
//! the amount of 'free' arguments in the match is what you expect. Use opt_*
//! the amount of 'free' arguments in the match is what you expect. Use `opt_*`
//! accessors to get argument values out of the matches object.
//!
//! Single-character options are expected to appear on the command line with a
Expand All @@ -27,7 +27,7 @@
//!
//! The following example shows simple command line parsing for an application
//! that requires an input file to be specified, accepts an optional output
//! file name following -o, and accepts both -h and --help as optional flags.
//! file name following `-o`, and accepts both `-h` and `--help` as optional flags.
//!
//! ~~~{.rust}
//! exter mod extra;
Expand Down

0 comments on commit d798e00

Please sign in to comment.