mirror of
https://github.com/denoland/std.git
synced 2024-11-22 04:59:05 +00:00
docs: update path.dirname
to be clear it returns the directory path (#2365)
This commit is contained in:
parent
8d60d1c35b
commit
1d49742a2d
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user