Skip to content

Commit 983269e

Browse files
author
Ron Dahlgren
committed
Updated documentation to refer to extra module
The documentation was still refering to getopts as though it was in the std module - I've changed this to refer to extra instead.
1 parent 9bcf911 commit 983269e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libextra/getopts.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
* file name following -o, and accepts both -h and --help as optional flags.
3232
*
3333
* ```
34-
* extern mod std;
35-
* use std::getopts::*;
34+
* extern mod extra;
35+
* use extra::getopts::*;
3636
*
3737
* fn do_work(in: &str, out: Option<~str>) {
3838
* io::println(in);
@@ -42,7 +42,7 @@
4242
* });
4343
* }
4444
*
45-
* fn print_usage(program: &str, _opts: &[std::getopts::Opt]) {
45+
* fn print_usage(program: &str, _opts: &[extra::getopts::Opt]) {
4646
* io::println(fmt!("Usage: %s [options]", program));
4747
* io::println("-o\t\tOutput");
4848
* io::println("-h --help\tUsage");

0 commit comments

Comments
 (0)