diff options
| author | Richo Healey <richo@psych0tik.net> | 2015-03-07 22:30:12 -0800 |
|---|---|---|
| committer | Richo Healey <richo@psych0tik.net> | 2015-03-09 07:54:19 -0700 |
| commit | 7981aa6ac9165b0bb1a5f624b8802192b8ebc9ee (patch) | |
| tree | ff0e96f6906be6c2e3b7a27ebda618bbb81c14dc /src/libgetopts | |
| parent | 061d84399e66dc3d47c567370b71e047202ba60f (diff) | |
doc: Fix extraneous as_slice()'s in docstrings
Diffstat (limited to 'src/libgetopts')
| -rw-r--r-- | src/libgetopts/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libgetopts/lib.rs b/src/libgetopts/lib.rs index 617edb4bea6..38abf3881bd 100644 --- a/src/libgetopts/lib.rs +++ b/src/libgetopts/lib.rs @@ -46,7 +46,7 @@ //! //! fn print_usage(program: &str, opts: &[OptGroup]) { //! let brief = format!("Usage: {} [options]", program); -//! print!("{}", usage(brief.as_slice(), opts)); +//! print!("{}", usage(brief, opts)); //! } //! //! fn main() { @@ -63,17 +63,17 @@ //! Err(f) => { panic!(f.to_string()) } //! }; //! if matches.opt_present("h") { -//! print_usage(program.as_slice(), opts); +//! print_usage(program, opts); //! return; //! } //! let output = matches.opt_str("o"); //! let input = if !matches.free.is_empty() { //! matches.free[0].clone() //! } else { -//! print_usage(program.as_slice(), opts); +//! print_usage(program, opts); //! return; //! }; -//! do_work(input.as_slice(), output); +//! do_work(input, output); //! } //! ``` |
