]> git.lizzy.rs Git - rust.git/blobdiff - src/libgetopts/lib.rs
auto merge of #13440 : huonw/rust/strbuf, r=alexcrichton
[rust.git] / src / libgetopts / lib.rs
index c8c013b99f2210f2589a7c486075513488084b6d..18f681493fa0803f8104f3e774e1e3aaa2509134 100644 (file)
@@ -53,7 +53,7 @@
 //!
 //!     let program = args[0].clone();
 //!
-//!     let opts = ~[
+//!     let opts = [
 //!         optopt("o", "", "set output file name", "NAME"),
 //!         optflag("h", "help", "print this help menu")
 //!     ];