Skip to content

Commit

Permalink
Updated documentation to refer to extra module
Browse files Browse the repository at this point in the history
The documentation was still refering to getopts as though it was in the
std module - I've changed this to refer to extra instead.
  • Loading branch information
Ron Dahlgren committed Jun 9, 2013
1 parent 9bcf911 commit 983269e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libextra/getopts.rs
Expand Up @@ -31,8 +31,8 @@
* file name following -o, and accepts both -h and --help as optional flags.
*
* ```
* extern mod std;
* use std::getopts::*;
* extern mod extra;
* use extra::getopts::*;
*
* fn do_work(in: &str, out: Option<~str>) {
* io::println(in);
Expand All @@ -42,7 +42,7 @@
* });
* }
*
* fn print_usage(program: &str, _opts: &[std::getopts::Opt]) {
* fn print_usage(program: &str, _opts: &[extra::getopts::Opt]) {
* io::println(fmt!("Usage: %s [options]", program));
* io::println("-o\t\tOutput");
* io::println("-h --help\tUsage");
Expand Down

0 comments on commit 983269e

Please sign in to comment.