浏览代码

Small mistake in path:is-regular doc

`path:is-dir` was in transcript
dunsany 1 年之前
父节点
当前提交
39c487416c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      pkg/mods/path/path.go

+ 1 - 1
pkg/mods/path/path.go

@@ -224,7 +224,7 @@ func isDir(opts isOpts, path string) bool {
 // ~> touch not-a-dir
 // ~> path:is-regular not-a-dir
 // ▶ true
-// ~> path:is-dir /tmp
+// ~> path:is-regular /tmp
 // ▶ false
 // ```
 //