]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #29772 - banyan:fix-doc, r=steveklabnik
authorManish Goregaokar <manishsmail@gmail.com>
Wed, 11 Nov 2015 19:29:30 +0000 (00:59 +0530)
committerManish Goregaokar <manishsmail@gmail.com>
Wed, 11 Nov 2015 19:29:30 +0000 (00:59 +0530)
src/libcore/macros.rs

index 5b5f59d5ddbb7ffdf754ef6fc46644b02c4b3058..579232e5a5dff93bc0347bf6c92ed8c8c9d0ade4 100644 (file)
@@ -308,27 +308,27 @@ macro_rules! unreachable {
 ///
 /// ```
 /// # trait Foo {
-/// #     fn foo(&self);
 /// #     fn bar(&self);
+/// #     fn baz(&self);
 /// # }
 /// struct MyStruct;
 ///
 /// impl Foo for MyStruct {
-///     fn foo(&self) {
+///     fn bar(&self) {
 ///         // implementation goes here
 ///     }
 ///
-///     fn bar(&self) {
-///         // let's not worry about implementing bar() for now
+///     fn baz(&self) {
+///         // let's not worry about implementing baz() for now
 ///         unimplemented!();
 ///     }
 /// }
 ///
 /// fn main() {
 ///     let s = MyStruct;
-///     s.foo();
+///     s.bar();
 ///
-///     // we aren't even using bar() yet, so this is fine.
+///     // we aren't even using baz() yet, so this is fine.
 /// }
 /// ```
 #[macro_export]