diff --git a/src/filemap.rs b/src/filemap.rs index e290b42..e9fc884 100644 --- a/src/filemap.rs +++ b/src/filemap.rs @@ -44,8 +44,8 @@ impl Files { /// Get relative file path /// - /// If the modified filename path is './prod/test.randomhash.svg`, it will - /// output `/test.randomhash.svg`. For full path, see [get_full_path] + /// If the modified filename path is `./prod/test.randomhash.svg`, it will + /// output `/test.randomhash.svg`. For full path, see [get_full_path][Self::get_full_path]. pub fn get<'a>(&'a self, path: &'a str) -> Option<&'a str> { if let Some(path) = self.map.get(path) { Some(&path[self.base_dir.len()..]) @@ -56,8 +56,8 @@ impl Files { /// Get file path /// - /// If the modified filename path is './prod/test.randomhash.svg`, it will - /// output `/prod/test.randomhash.svg`. For relative path, see [get] + /// If the modified filename path is `./prod/test.randomhash.svg`, it will + /// output `/prod/test.randomhash.svg`. For relative path, see [get][Self::get]. pub fn get_full_path<'a>(&'a self, path: &'a str) -> Option<&'a String> { self.map.get(path) } diff --git a/src/processor.rs b/src/processor.rs index 2848c39..de77a7b 100644 --- a/src/processor.rs +++ b/src/processor.rs @@ -90,7 +90,7 @@ impl Buster { /// If MIME types are uncommon, then use this funtion /// as it won't panic when a weird MIM is encountered. /// - /// Otherwise, use [process] + /// Otherwise, use [process][Self::process] /// /// Note: it omits processing uncommon MIME types pub fn try_process(&self) -> Result {