Skip to content

Commit 44fd0b9

Browse files
committed
docs: Fix variable name
1 parent 7d3477c commit 44fd0b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/libcore/macros.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -308,27 +308,27 @@ macro_rules! unreachable {
308308
///
309309
/// ```
310310
/// # trait Foo {
311-
/// # fn foo(&self);
312311
/// # fn bar(&self);
312+
/// # fn baz(&self);
313313
/// # }
314314
/// struct MyStruct;
315315
///
316316
/// impl Foo for MyStruct {
317-
/// fn foo(&self) {
317+
/// fn bar(&self) {
318318
/// // implementation goes here
319319
/// }
320320
///
321-
/// fn bar(&self) {
322-
/// // let's not worry about implementing bar() for now
321+
/// fn baz(&self) {
322+
/// // let's not worry about implementing baz() for now
323323
/// unimplemented!();
324324
/// }
325325
/// }
326326
///
327327
/// fn main() {
328328
/// let s = MyStruct;
329-
/// s.foo();
329+
/// s.bar();
330330
///
331-
/// // we aren't even using bar() yet, so this is fine.
331+
/// // we aren't even using baz() yet, so this is fine.
332332
/// }
333333
/// ```
334334
#[macro_export]

0 commit comments

Comments
 (0)