From fb880fb6bd5f094566f2724c164998c071d013db Mon Sep 17 00:00:00 2001 From: hkhere <33268704+hkhere@users.noreply.github.com> Date: Thu, 27 Jan 2022 21:25:16 +0800 Subject: [PATCH] paths.md: update comments of `Canoical paths` section --- src/paths.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/paths.md b/src/paths.md index 695252f5f..562a6f065 100644 --- a/src/paths.md +++ b/src/paths.md @@ -335,24 +335,24 @@ the crate. ```rust // Comments show the canonical path of the item. -mod a { // ::a - pub struct Struct; // ::a::Struct +mod a { // crate::a + pub struct Struct; // crate::a::Struct - pub trait Trait { // ::a::Trait - fn f(&self); // ::a::Trait::f + pub trait Trait { // crate::a::Trait + fn f(&self); // crate::a::Trait::f } impl Trait for Struct { - fn f(&self) {} // <::a::Struct as ::a::Trait>::f + fn f(&self) {} // ::f } impl Struct { - fn g(&self) {} // <::a::Struct>::g + fn g(&self) {} // ::g } } -mod without { // ::without - fn canonicals() { // ::without::canonicals +mod without { // crate::without + fn canonicals() { // crate::without::canonicals struct OtherStruct; // None trait OtherTrait { // None