about summary refs log tree commit diff
path: root/src/libgetopts
diff options
context:
space:
mode:
authorRicho Healey <richo@psych0tik.net>2015-03-07 22:30:12 -0800
committerRicho Healey <richo@psych0tik.net>2015-03-09 07:54:19 -0700
commit7981aa6ac9165b0bb1a5f624b8802192b8ebc9ee (patch)
treeff0e96f6906be6c2e3b7a27ebda618bbb81c14dc /src/libgetopts
parent061d84399e66dc3d47c567370b71e047202ba60f (diff)
doc: Fix extraneous as_slice()'s in docstrings
Diffstat (limited to 'src/libgetopts')
-rw-r--r--src/libgetopts/lib.rs8
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);
 //! }
 //! ```