|
|
8a74b0 |
From 505f82135ffca76fb8072500a7378a725a6d9acd Mon Sep 17 00:00:00 2001
|
|
|
8a74b0 |
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
|
8a74b0 |
Date: Fri, 9 Mar 2018 15:02:24 +0100
|
|
|
8a74b0 |
Subject: [PATCH] doc_numify_stringify_trailing_zeros
|
|
|
8a74b0 |
MIME-Version: 1.0
|
|
|
8a74b0 |
Content-Type: text/plain; charset=UTF-8
|
|
|
8a74b0 |
Content-Transfer-Encoding: 8bit
|
|
|
8a74b0 |
|
|
|
8a74b0 |
This corrects numify() and stringify() documentation to match code bahavior
|
|
|
8a74b0 |
that exists for ages.
|
|
|
8a74b0 |
|
|
|
8a74b0 |
CPAN RT#64635
|
|
|
8a74b0 |
CPAN RT#122858
|
|
|
8a74b0 |
|
|
|
8a74b0 |
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
|
8a74b0 |
---
|
|
|
8a74b0 |
lib/version.pod | 9 ++++-----
|
|
|
8a74b0 |
1 file changed, 4 insertions(+), 5 deletions(-)
|
|
|
8a74b0 |
|
|
|
8a74b0 |
diff --git a/lib/version.pod b/lib/version.pod
|
|
|
8a74b0 |
index 40ceee2..86df045 100644
|
|
|
8a74b0 |
--- a/lib/version.pod
|
|
|
8a74b0 |
+++ b/lib/version.pod
|
|
|
8a74b0 |
@@ -266,11 +266,10 @@ leading-v and at least 3 components.
|
|
|
8a74b0 |
|
|
|
8a74b0 |
=head2 numify()
|
|
|
8a74b0 |
|
|
|
8a74b0 |
-Returns a value representing the object in a pure decimal form without
|
|
|
8a74b0 |
-trailing zeroes.
|
|
|
8a74b0 |
+Returns a value representing the object in a pure decimal.
|
|
|
8a74b0 |
|
|
|
8a74b0 |
- version->declare('v1.2')->numify; # 1.002
|
|
|
8a74b0 |
- version->parse('1.2')->numify; # 1.2
|
|
|
8a74b0 |
+ version->declare('v1.2')->numify; # 1.002000
|
|
|
8a74b0 |
+ version->parse('1.2')->numify; # 1.200
|
|
|
8a74b0 |
|
|
|
8a74b0 |
=head2 stringify()
|
|
|
8a74b0 |
|
|
|
8a74b0 |
@@ -280,7 +279,7 @@ way perl would normally represent it in a string. This method is used whenever
|
|
|
8a74b0 |
a version object is interpolated into a string.
|
|
|
8a74b0 |
|
|
|
8a74b0 |
version->declare('v1.2')->stringify; # v1.2
|
|
|
8a74b0 |
- version->parse('1.200')->stringify; # 1.200
|
|
|
8a74b0 |
+ version->parse('1.200')->stringify; # 1.2
|
|
|
8a74b0 |
version->parse(1.02_30)->stringify; # 1.023
|
|
|
8a74b0 |
|
|
|
8a74b0 |
=head1 EXPORTED FUNCTIONS
|
|
|
8a74b0 |
--
|
|
|
8a74b0 |
2.14.3
|
|
|
8a74b0 |
|