diff options
| author | Kohei Hasegawa <ameutau@gmail.com> | 2015-11-12 00:47:42 +0900 |
|---|---|---|
| committer | Kohei Hasegawa <ameutau@gmail.com> | 2015-11-12 00:47:42 +0900 |
| commit | 44fd0b91fb86d28731b223b5d2c7d17d04531e52 (patch) | |
| tree | 965ae626cbdba6933300b3cd17ce8928b6380b2d /src | |
| parent | 7d3477ce094de69823006d0a2ca147b970eee2e2 (diff) | |
| download | rust-44fd0b91fb86d28731b223b5d2c7d17d04531e52.tar.gz rust-44fd0b91fb86d28731b223b5d2c7d17d04531e52.zip | |
docs: Fix variable name
Diffstat (limited to 'src')
| -rw-r--r-- | src/libcore/macros.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs index 5b5f59d5ddb..579232e5a5d 100644 --- a/src/libcore/macros.rs +++ b/src/libcore/macros.rs @@ -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] |
