Sfoglia il codice sorgente

docs: Update doc comment from `normalize` function in `path` plugin to match definition (#8886)

The doc comment from the normalize function in the path plugin was not matching the actual definition.

Rust definition: https://github.com/tauri-apps/tauri/blob/0cb0a15ce22af3d649cf219ac04188c14c5f4905/core/tauri/src/path/plugin.rs#L18

Typescript definition: https://github.com/tauri-apps/tauri/blob/0cb0a15ce22af3d649cf219ac04188c14c5f4905/tooling/api/src/path.ts#L589
Marc Espin 1 anno fa
parent
commit
dbd525ca64
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      tooling/api/src/path.ts

+ 1 - 1
tooling/api/src/path.ts

@@ -581,7 +581,7 @@ async function resolve(...paths: string[]): Promise<string> {
  * ```typescript
  * import { normalize, appDataDir } from '@tauri-apps/api/path';
  * const appDataDirPath = await appDataDir();
- * const path = await normalize(appDataDirPath, '..', 'users', 'tauri', 'avatar.png');
+ * const path = await normalize(`${appDataDirPath}/../users/tauri/avatar.png`);
  * ```
  *
  * @since 1.0.0