Skip to content

Commit

Permalink
[ci skip] Fix documentation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 25, 2020
1 parent 8e62fe8 commit 7830377
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -264,13 +264,13 @@ Path("/foo/bar/../baz") // => /foo/baz
// symlinks are not resolved
Path.root.bar.symlink(as: "foo")
Path("foo") // => /foo
Path("/foo") // => /foo
Path.foo // => /foo
// unless you do it explicitly
try Path.foo.readlink() // => /bar
// `readlink` only resolves the *final* path component,
// thus use `realpath` if there are multiple symlinks
try Path.root.foo.readlink() // => /bar
// `readlink` only resolves the *final* path component,
// thus use `realpath` if there are multiple symlinks
```
*Path.swift* has the general policy that if the desired end result preexists,
Expand Down

0 comments on commit 7830377

Please sign in to comment.