From ee1f46954cd5fd07ad4156b8f348686d5500c316 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Mon, 28 Jan 2019 16:05:39 +0000 Subject: [PATCH] Fixes #20 [skip ci] --- README.md | 2 +- Sources/Path.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 24cd9dc..df0c294 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ package.append(.package(url: "https://github.com/mxcl/Path.swift", from: "0.5.0" CocoaPods: ```ruby -pod 'Path.swift' ~> '0.5.0' +pod 'Path.swift', '~> 0.5' ``` Carthage: diff --git a/Sources/Path.swift b/Sources/Path.swift index 9d16c5d..62f5e7c 100644 --- a/Sources/Path.swift +++ b/Sources/Path.swift @@ -36,7 +36,7 @@ public struct Path: Equatable, Hashable, Comparable { self.string = string } - /// Returns `nil` unless fed an absolute path + /// Returns `nil` unless fed an absolute path. public init?(_ description: String) { guard description.starts(with: "/") || description.starts(with: "~/") else { return nil } self.init(string: (description as NSString).standardizingPath) @@ -91,7 +91,7 @@ public struct Path: Equatable, Hashable, Comparable { - Parameter pathComponent: The string to join with this path. - Returns: A new joined path. - - SeeAlso: `Path./(_:, _:)` + - SeeAlso: `Path./(_:_:)` */ public func join(_ pathComponent: S) -> Path where S: StringProtocol { //TODO standardizingPath does more than we want really (eg tilde expansion)