From a8105eccb2122f003b4a36bbfb747998f53c5f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E8=89=AF=E4=BB=94?= <32487868+cijiugechu@users.noreply.github.com> Date: Thu, 24 Oct 2024 21:02:49 +0800 Subject: [PATCH] docs: fix wrongly rendered links on `docs.rs` (#11483) --- crates/tauri/src/path/desktop.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/tauri/src/path/desktop.rs b/crates/tauri/src/path/desktop.rs index ac7dd149f8e1..32463f993126 100644 --- a/crates/tauri/src/path/desktop.rs +++ b/crates/tauri/src/path/desktop.rs @@ -194,7 +194,7 @@ impl PathResolver { /// Returns the path to the suggested directory for your app's config files. /// - /// Resolves to [`config_dir`](self.config_dir)`/${bundle_identifier}`. + /// Resolves to [`config_dir`](Self::config_dir)`/${bundle_identifier}`. pub fn app_config_dir(&self) -> Result { dirs::config_dir() .ok_or(Error::UnknownPath) @@ -203,7 +203,7 @@ impl PathResolver { /// Returns the path to the suggested directory for your app's data files. /// - /// Resolves to [`data_dir`](self.data_dir)`/${bundle_identifier}`. + /// Resolves to [`data_dir`](Self::data_dir)`/${bundle_identifier}`. pub fn app_data_dir(&self) -> Result { dirs::data_dir() .ok_or(Error::UnknownPath) @@ -212,7 +212,7 @@ impl PathResolver { /// Returns the path to the suggested directory for your app's local data files. /// - /// Resolves to [`local_data_dir`](self.local_data_dir)`/${bundle_identifier}`. + /// Resolves to [`local_data_dir`](Self::local_data_dir)`/${bundle_identifier}`. pub fn app_local_data_dir(&self) -> Result { dirs::data_local_dir() .ok_or(Error::UnknownPath) @@ -221,7 +221,7 @@ impl PathResolver { /// Returns the path to the suggested directory for your app's cache files. /// - /// Resolves to [`cache_dir`](self.cache_dir)`/${bundle_identifier}`. + /// Resolves to [`cache_dir`](Self::cache_dir)`/${bundle_identifier}`. pub fn app_cache_dir(&self) -> Result { dirs::cache_dir() .ok_or(Error::UnknownPath) @@ -232,9 +232,9 @@ impl PathResolver { /// /// ## Platform-specific /// - /// - **Linux:** Resolves to [`data_local_dir`](self.data_local_dir)`/${bundle_identifier}/logs`. - /// - **macOS:** Resolves to [`home_dir`](self.home_dir)`/Library/Logs/${bundle_identifier}` - /// - **Windows:** Resolves to [`data_local_dir`](self.data_local_dir)`/${bundle_identifier}/logs`. + /// - **Linux:** Resolves to [`local_data_dir`](Self::local_data_dir)`/${bundle_identifier}/logs`. + /// - **macOS:** Resolves to [`home_dir`](Self::home_dir)`/Library/Logs/${bundle_identifier}` + /// - **Windows:** Resolves to [`local_data_dir`](Self::local_data_dir)`/${bundle_identifier}/logs`. pub fn app_log_dir(&self) -> Result { #[cfg(target_os = "macos")] let path = dirs::home_dir()