vendored/puppet/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version.rb in bolt-0.16.0 vs vendored/puppet/lib/puppet/vendor/semantic_puppet/lib/semantic_puppet/version.rb in bolt-0.16.1
- old
+ new
@@ -159,11 +159,11 @@
elsif yours.nil?
-1
else
# Compare all prerelease identifier segments that can be compared. Should
# all segments compare equal up to the point where one of the prereleases
- # have no more segments, then the one with more segements is greater.
+ # have no more segments, then the one with more segments is greater.
your_max = yours.size
mine.each_with_index do |x, idx|
# 'mine' win if 'your' list of segments is exhausted
return 1 if idx >= your_max
y = yours[idx]
@@ -179,10 +179,10 @@
# No need to continue if a diff is found
return cmp unless cmp == 0
end
- # All segments, up to the point where at least one list of segement is exhausted,
+ # All segments, up to the point where at least one list of segment is exhausted,
# compared equal. The one with the highest segment count wins.
mine.size <=> your_max
end
end