Skip to content

Commit 4f7ec52

Browse files
committed
Revise
1 parent 50b110b commit 4f7ec52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/names/name-resolution.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ const _: () = {
272272
>
273273
> use outer::AMBIG;
274274
>
275-
> pub fn foo() {
275+
> pub fn f() {
276276
> use glob::*;
277277
> assert!(AMBIG);
278278
> // ^--- This `AMBIG` is resolved during primary resolution.
@@ -293,7 +293,7 @@ macro_rules! path_based {
293293
() => {}
294294
}
295295
296-
pub fn foo() {
296+
pub fn f() {
297297
ambig!(); // ERROR: `ambig` is ambiguous
298298
use path_based as ambig; // In scope for entire function body.
299299
}
@@ -350,7 +350,7 @@ macro_rules! define_name {
350350
}
351351
}
352352
353-
fn foo() {
353+
fn f() {
354354
define_name!();
355355
name!(); // ERROR: `name` is ambiguous
356356
}

0 commit comments

Comments
 (0)