docs: Fix variable name
This commit is contained in:
parent
7d3477ce09
commit
44fd0b91fb
1 changed files with 6 additions and 6 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue