docs(path): fix log directory documentation

This commit is contained in:
Lucas Nogueira
2022-09-23 20:06:52 -03:00
parent adba73a9ff
commit 013fb354d9
2 changed files with 5 additions and 5 deletions

View File

@@ -472,9 +472,9 @@ pub fn app_dir(config: &Config) -> Option<PathBuf> {
///
/// ## Platform-specific
///
/// - **Linux:** Resolves to `${config_dir}/${bundle_identifier}`.
/// - **Linux:** Resolves to `${config_dir}/${bundle_identifier}/logs`.
/// - **macOS:** Resolves to `${home_dir}//Library/Logs/{bundle_identifier}`
/// - **Windows:** Resolves to `${config_dir}/${bundle_identifier}`.
/// - **Windows:** Resolves to `${config_dir}/${bundle_identifier}/logs`.
///
/// See [`PathResolver::log_dir`](crate::PathResolver#method.log_dir) for a more convenient helper function.
pub fn log_dir(config: &Config) -> Option<PathBuf> {

View File

@@ -533,9 +533,9 @@ async function videoDir(): Promise<string> {
*
* #### Platform-specific
*
* - **Linux:** Resolves to `${configDir}/${bundleIdentifier}`.
* - **macOS:** Resolves to `${homeDir}//Library/Logs/{bundleIdentifier}`
* - **Windows:** Resolves to `${configDir}/${bundleIdentifier}`.
* - **Linux:** Resolves to `${configDir}/${bundleIdentifier}/logs`.
* - **macOS:** Resolves to `${homeDir}/Library/Logs/{bundleIdentifier}`
* - **Windows:** Resolves to `${configDir}/${bundleIdentifier}/logs`.
* @example
* ```typescript
* import { logDir } from '@tauri-apps/api/path';