Skip to content

Commit

Permalink
Fix #110: make docstring of more accurate
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Aug 4, 2023
1 parent c5c5365 commit 8c9e048
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
- [`move`](#babashka.fs/move) - Move or rename a file to a target dir or file via <code>Files/move</code>.
- [`normalize`](#babashka.fs/normalize) - Normalizes f via Path#normalize.
- [`owner`](#babashka.fs/owner) - Returns the owner of a file.
- [`parent`](#babashka.fs/parent) - Returns parent of f, is it exists.
- [`parent`](#babashka.fs/parent) - Returns parent of f.
- [`path`](#babashka.fs/path) - Coerces f into a Path.
- [`path-separator`](#babashka.fs/path-separator)
- [`posix->str`](#babashka.fs/posix->str) - Converts a set of PosixFilePermission to a string.
Expand Down Expand Up @@ -622,7 +622,7 @@ Returns the owner of a file. Call `str` on it to get the owner name
(parent f)
```

Returns parent of f, is it exists. Akin to `dirname` in bash.
Returns parent of f. Akin to `dirname` in bash.
<p><sub><a href="https://github.com/babashka/fs/blob/master/src/babashka/fs.cljc#L593-L596">Source</a></sub></p>

## <a name="babashka.fs/path">`path`</a><a name="babashka.fs/path"></a>
Expand Down
2 changes: 1 addition & 1 deletion src/babashka/fs.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@
(->copy-opts replace-existing false atomic-move nofollow-links))))))

(defn parent
"Returns parent of f, is it exists. Akin to `dirname` in bash."
"Returns parent of f. Akin to `dirname` in bash."
[f]
(.getParent (as-path f)))

Expand Down

0 comments on commit 8c9e048

Please sign in to comment.