Subject: | [Patch] POD nits |
The attached patch fixes some POD, which renders wrong, at least at
search.cpan.org.
Subject: | pod.patch |
diff --git a/lib/Math/String/Charset.pm b/lib/Math/String/Charset.pm
index 2cebe01..2947560 100644
--- a/lib/Math/String/Charset.pm
+++ b/lib/Math/String/Charset.pm
@@ -2256,7 +2256,7 @@ This will produce (slightly contracted here):
'start' => [ 'h' ]
};
-Using C<depth => 2>, you would get (slightly ontracted again):
+Using C<- depth => 2 >>, you would get (slightly ontracted again):
$VAR1 = {
'end' => [ 's' ],
diff --git a/lib/Math/String/Charset/Grouped.pm b/lib/Math/String/Charset/Grouped.pm
index 618effd..3cabd61 100644
--- a/lib/Math/String/Charset/Grouped.pm
+++ b/lib/Math/String/Charset/Grouped.pm
@@ -621,7 +621,7 @@ The constructor takes a HASH reference. The following keys can be used:
end array ref to list of all valid ending characters
sep separator character, none if undef
-C<start> and C<end> are synomyms for C<sets->{1}> and C<sets->{-1}>,
+C<start> and C<end> are synomyms for C<< sets->{1} >> and C<< sets->{-1} >>,
respectively. The will override what you specify in sets and are only for
convienence.
@@ -634,7 +634,7 @@ The resulting charset will always be of order 1, type 1.
C<start> contains an array reference to all valid starting
characters, e.g. no valid string can start with a character not listed here.
-The same can be acomplished by specifying C<sets->{1}>.
+The same can be acomplished by specifying C<< sets->{1} >>.
=item sets
@@ -645,7 +645,7 @@ Math::String::Charset of order 1, type 0.
Positive indices (greater than one) count from the left side, negative from
the right. 0 denotes the default charset to be used for unspecified places.
-The index count will be used for all string length, so that C<sets->{2}> always
+The index count will be used for all string length, so that C<< sets->{2} >> always
refers to the second character from the left, no matter how many characters
the string actually has.
@@ -695,7 +695,7 @@ characters, e.g. no valid string can end with a character not listed here.
Note that strings of length 1 start B<and> end with their only
character, so the character must be listed in C<end> and C<start> to produce
a string with one character.
-The same can be acomplished by specifying C<sets->{-1}>.
+The same can be acomplished by specifying C<< sets->{-1} >>.
=item minlen
@@ -859,7 +859,7 @@ In scalar context returns the lenght of the B<start> set.
Think of the start set as the set of all characters that can start a string
with one or more characters. The set for one character strings is called
-B<ones> and you can access if via C<$charset->ones()>.
+B<ones> and you can access if via C<< $charset->ones() >>.
=head2 B<end()>