diff --git a/README.md b/README.md index 394d35f..534cf2d 100644 --- a/README.md +++ b/README.md @@ -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,