Skip to content

Commit

Permalink
Minor documentation fix
Browse files Browse the repository at this point in the history
Additional values past the patch number must still be unsigned integers
  • Loading branch information
Josh Kaplan committed Jan 12, 2022
1 parent 4f3a097 commit bc65bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/EmbeddedPropertyList/BundleVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ extension BundleVersion: Hashable {
/// Hashing does not take ``rawValue-swift.property`` into account, this means the following will hash identically:
/// - `1.` and `1.0.0`
/// - `1.2` and `1.2.0`
/// - `1.2.3` and `1.2.3.a`
/// - `1.2.3` and `1.2.3.4`
public func hash(into hasher: inout Hasher) {
hasher.combine(self.major)
hasher.combine(self.minor)
Expand All @@ -121,7 +121,7 @@ extension BundleVersion: Hashable {
/// The ``rawValue-swift.property`` is not considered, this means the following will evaluate as equal:
/// - `1.` and `1.0.0`
/// - `1.2` and `1.2.0`
/// - `1.2.3` and `1.2.3.a`
/// - `1.2.3` and `1.2.3.4`
public static func == (lhs: BundleVersion, rhs: BundleVersion) -> Bool {
return (lhs.major == rhs.major) && (lhs.minor == rhs.minor) && (lhs.patch == rhs.patch)
}
Expand Down

0 comments on commit bc65bbb

Please sign in to comment.