Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Sources/PathKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ extension Path {

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