perl-version/version-0.9918-doc_numify_stringify_trailing_zeros.patch

32 lines
923 B
Diff

This corrects numify() and stringify() documentation to match code bahavior
that exists for ages.
CPAN RT#64635
CPAN RT#122858
diff -r 2e2892f29539 lib/version.pod
--- a/lib/version.pod Sun May 29 07:50:12 2016 -0400
+++ b/lib/version.pod Fri Mar 09 14:38:36 2018 +0100
@@ -266,10 +266,9 @@
=head2 numify()
-Returns a value representing the object in a pure decimal form without
-trailing zeroes.
+Returns a value representing the object in a pure decimal.
- version->declare('v1.2')->numify; # 1.002
+ version->declare('v1.2')->numify; # 1.002000
version->parse('1.2')->numify; # 1.200
=head2 stringify()
@@ -280,7 +279,7 @@
a version object is interpolated into a string.
version->declare('v1.2')->stringify; # v1.2
- version->parse('1.200')->stringify; # 1.200
+ version->parse('1.200')->stringify; # 1.2
version->parse(1.02_30)->stringify; # 1.023
=head1 EXPORTED FUNCTIONS