Skip to content

Commit 411c2f0

Browse files
authored
Merge pull request #1146 from hkhere/patch-1
paths.md: update comments of `Canoical paths` section
2 parents 770c3f6 + fb880fb commit 411c2f0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/paths.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -335,24 +335,24 @@ the crate.
335335
```rust
336336
// Comments show the canonical path of the item.
337337

338-
mod a { // ::a
339-
pub struct Struct; // ::a::Struct
338+
mod a { // crate::a
339+
pub struct Struct; // crate::a::Struct
340340

341-
pub trait Trait { // ::a::Trait
342-
fn f(&self); // ::a::Trait::f
341+
pub trait Trait { // crate::a::Trait
342+
fn f(&self); // crate::a::Trait::f
343343
}
344344

345345
impl Trait for Struct {
346-
fn f(&self) {} // <::a::Struct as ::a::Trait>::f
346+
fn f(&self) {} // <crate::a::Struct as crate::a::Trait>::f
347347
}
348348

349349
impl Struct {
350-
fn g(&self) {} // <::a::Struct>::g
350+
fn g(&self) {} // <crate::a::Struct>::g
351351
}
352352
}
353353

354-
mod without { // ::without
355-
fn canonicals() { // ::without::canonicals
354+
mod without { // crate::without
355+
fn canonicals() { // crate::without::canonicals
356356
struct OtherStruct; // None
357357

358358
trait OtherTrait { // None

0 commit comments

Comments
 (0)