Skip to content

Commit 00144de

Browse files
committed
Fix docstrings
1 parent 2fcd461 commit 00144de

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Sources/PathKit.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ extension Path {
420420

421421
/// Creates a symbolic link at a new destination.
422422
///
423-
/// - Parameter destintation: The location where the link will be created.
423+
/// - Parameter destination: The location where the link will be created.
424424
///
425425
public func symlink(_ destination: Path) throws -> () {
426426
try Path.fileManager.createSymbolicLink(atPath: self.path, withDestinationPath: destination.path)
@@ -541,8 +541,6 @@ extension Path {
541541
/// - Parameter encoding: the encoding which should be used to represent the string as bytes.
542542
/// (by default: `NSUTF8StringEncoding`)
543543
///
544-
/// - Returns: the contents of the file at the specified path as string.
545-
///
546544
public func write(_ string: String, encoding: String.Encoding = String.Encoding.utf8) throws {
547545
try string.write(toFile: normalize().path, atomically: true, encoding: encoding)
548546
}

0 commit comments

Comments
 (0)