Minor documentation fixes

[ci skip]
This commit is contained in:
Max Howell
2019-01-26 18:00:16 +00:00
parent 3beba13677
commit 99b948f9c1
5 changed files with 31 additions and 32 deletions

View File

@@ -28,7 +28,7 @@ print(bar) // => /bar
print(bar.isFile) // => true
// careful API considerations so as to avoid common bugs
let foo = try Path.root.join("foo").copy(into: Path.root.mkdir("bar"))
let foo = try Path.root.join("foo").copy(into: Path.root.join("bar").mkdir())
print(foo) // => /bar/foo
print(foo.isFile) // => true