docs: update path.dirname to be clear it returns the directory path (#2365)

This commit is contained in:
David Sherret 2022-06-20 10:06:46 -04:00 committed by GitHub
parent 8d60d1c35b
commit 1d49742a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -216,8 +216,8 @@ export function toNamespacedPath(path: string): string {
}
/**
* Return the directory name of a `path`.
* @param path to determine name for
* Return the directory path of a `path`.
* @param path to determine the directory path for
*/
export function dirname(path: string): string {
assertPath(path);

View File

@ -535,8 +535,8 @@ export function toNamespacedPath(path: string): string {
}
/**
* Return the directory name of a `path`.
* @param path to determine name for
* Return the directory path of a `path`.
* @param path to determine the directory path for
*/
export function dirname(path: string): string {
assertPath(path);