diff options
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.14.2/debian/fixes/pod_fixes.diff')
-rw-r--r-- | meta/recipes-devtools/perl/perl-5.14.2/debian/fixes/pod_fixes.diff | 145 |
1 files changed, 145 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.14.2/debian/fixes/pod_fixes.diff b/meta/recipes-devtools/perl/perl-5.14.2/debian/fixes/pod_fixes.diff new file mode 100644 index 0000000000..eb0eb0bf44 --- /dev/null +++ b/meta/recipes-devtools/perl/perl-5.14.2/debian/fixes/pod_fixes.diff | |||
@@ -0,0 +1,145 @@ | |||
1 | From c6b1fdd18dab0236458502564e54c180bb0ce341 Mon Sep 17 00:00:00 2001 | ||
2 | From: Keith Thompson <kst@mib.org> | ||
3 | Date: Fri, 29 Jul 2011 17:17:00 -0700 | ||
4 | Subject: Fix typos in several pod/perl*.pod files | ||
5 | |||
6 | Bug-Debian: http://bugs.debian.org/637816 | ||
7 | Origin: http://perl5.git.perl.org/perl.git/commit/7698aede74509727f7bca31c58fc7a53b182315d | ||
8 | Patch-Name: fixes/pod_fixes.diff | ||
9 | --- | ||
10 | pod/perlfunc.pod | 8 ++++---- | ||
11 | pod/perlglossary.pod | 10 +++++----- | ||
12 | pod/perlmod.pod | 4 ++-- | ||
13 | pod/perlretut.pod | 6 +++--- | ||
14 | 4 files changed, 14 insertions(+), 14 deletions(-) | ||
15 | |||
16 | diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod | ||
17 | index 2ee3637..719a740 100644 | ||
18 | --- a/pod/perlfunc.pod | ||
19 | +++ b/pod/perlfunc.pod | ||
20 | @@ -3918,7 +3918,7 @@ count. A numeric repeat count may optionally be enclosed in brackets, as | ||
21 | in C<pack("C[80]", @arr)>. The repeat count gobbles that many values from | ||
22 | the LIST when used with all format types other than C<a>, C<A>, C<Z>, C<b>, | ||
23 | C<B>, C<h>, C<H>, C<@>, C<.>, C<x>, C<X>, and C<P>, where it means | ||
24 | -something else, dscribed below. Supplying a C<*> for the repeat count | ||
25 | +something else, described below. Supplying a C<*> for the repeat count | ||
26 | instead of a number means to use however many items are left, except for: | ||
27 | |||
28 | =over | ||
29 | @@ -5870,7 +5870,7 @@ sometimes saying the opposite, for example) the results are not | ||
30 | well-defined. | ||
31 | |||
32 | Because C<< <=> >> returns C<undef> when either operand is C<NaN> | ||
33 | -(not-a-number), and laso because C<sort> raises an exception unless the | ||
34 | +(not-a-number), and also because C<sort> raises an exception unless the | ||
35 | result of a comparison is defined, be careful when sorting with a | ||
36 | comparison function like C<< $a <=> $b >> any lists that might contain a | ||
37 | C<NaN>. The following example takes advantage that C<NaN != NaN> to | ||
38 | @@ -5958,7 +5958,7 @@ specified. | ||
39 | |||
40 | A pattern matching the empty string (not to be confused with | ||
41 | an empty pattern C<//>, which is just one member of the set of patterns | ||
42 | -matching the epmty string), splits EXPR into individual | ||
43 | +matching the empty string), splits EXPR into individual | ||
44 | characters. For example: | ||
45 | |||
46 | print join(':', split(/ */, 'hi there')), "\n"; | ||
47 | @@ -6222,7 +6222,7 @@ For example: | ||
48 | printf '<%.1e>', 10; # prints "<1.0e+01>" | ||
49 | |||
50 | For "g" and "G", this specifies the maximum number of digits to show, | ||
51 | -including thoe prior to the decimal point and those after it; for | ||
52 | +including those prior to the decimal point and those after it; for | ||
53 | example: | ||
54 | |||
55 | # These examples are subject to system-specific variation. | ||
56 | diff --git a/pod/perlglossary.pod b/pod/perlglossary.pod | ||
57 | index 639ce33..191371c 100644 | ||
58 | --- a/pod/perlglossary.pod | ||
59 | +++ b/pod/perlglossary.pod | ||
60 | @@ -507,7 +507,7 @@ the class (its L<objects|/object>). See also L</inheritance>. | ||
61 | |||
62 | =item class method | ||
63 | |||
64 | -A L</method> whose L</invocand> is a L</package> name, not an | ||
65 | +A L</method> whose L</invocant> is a L</package> name, not an | ||
66 | L</object> reference. A method associated with the class as a whole. | ||
67 | |||
68 | =item client | ||
69 | @@ -1470,7 +1470,7 @@ Perl, C<print STDOUT "$foo\n";> can be understood as "verb | ||
70 | indirect-object object" where L</STDOUT> is the recipient of the | ||
71 | L<print|perlfunc/print> action, and C<"$foo"> is the object being | ||
72 | printed. Similarly, when invoking a L</method>, you might place the | ||
73 | -invocand between the method and its arguments: | ||
74 | +invocant between the method and its arguments: | ||
75 | |||
76 | $gollum = new Pathetic::Creature "Smeagol"; | ||
77 | give $gollum "Fisssssh!"; | ||
78 | @@ -1548,11 +1548,11 @@ of compiler that takes a program and turns it into a more executable | ||
79 | form (L<syntax trees|/syntax tree>) within the I<perl> process itself, | ||
80 | which the Perl L</run time> system then interprets. | ||
81 | |||
82 | -=item invocand | ||
83 | +=item invocant | ||
84 | |||
85 | The agent on whose behalf a L</method> is invoked. In a L</class> | ||
86 | -method, the invocand is a package name. In an L</instance> method, | ||
87 | -the invocand is an object reference. | ||
88 | +method, the invocant is a package name. In an L</instance> method, | ||
89 | +the invocant is an object reference. | ||
90 | |||
91 | =item invocation | ||
92 | |||
93 | diff --git a/pod/perlmod.pod b/pod/perlmod.pod | ||
94 | index 5266f19..17de73e 100644 | ||
95 | --- a/pod/perlmod.pod | ||
96 | +++ b/pod/perlmod.pod | ||
97 | @@ -571,7 +571,7 @@ like for example handle the cloning of non-Perl data, if necessary. | ||
98 | C<CLONE> will be called once as a class method for every package that has it | ||
99 | defined (or inherits it). It will be called in the context of the new thread, | ||
100 | so all modifications are made in the new area. Currently CLONE is called with | ||
101 | -no parameters other than the invocand package name, but code should not assume | ||
102 | +no parameters other than the invocant package name, but code should not assume | ||
103 | that this will remain unchanged, as it is likely that in future extra parameters | ||
104 | will be passed in to give more information about the state of cloning. | ||
105 | |||
106 | @@ -593,7 +593,7 @@ to make use of the objects, then a more sophisticated approach is | ||
107 | needed. | ||
108 | |||
109 | Like C<CLONE>, C<CLONE_SKIP> is currently called with no parameters other | ||
110 | -than the invocand package name, although that may change. Similarly, to | ||
111 | +than the invocant package name, although that may change. Similarly, to | ||
112 | allow for future expansion, the return value should be a single C<0> or | ||
113 | C<1> value. | ||
114 | |||
115 | diff --git a/pod/perlretut.pod b/pod/perlretut.pod | ||
116 | index ea80594..1c65f5b 100644 | ||
117 | --- a/pod/perlretut.pod | ||
118 | +++ b/pod/perlretut.pod | ||
119 | @@ -781,7 +781,7 @@ so may lead to surprising and unsatisfactory results. | ||
120 | =head2 Relative backreferences | ||
121 | |||
122 | Counting the opening parentheses to get the correct number for a | ||
123 | -backreference is errorprone as soon as there is more than one | ||
124 | +backreference is error-prone as soon as there is more than one | ||
125 | capturing group. A more convenient technique became available | ||
126 | with Perl 5.10: relative backreferences. To refer to the immediately | ||
127 | preceding capture group one now may write C<\g{-1}>, the next but | ||
128 | @@ -1537,7 +1537,7 @@ the regexp in the I<last successful match> is used instead. So we have | ||
129 | |||
130 | =head3 Global matching | ||
131 | |||
132 | -The final two modifiers we will disccuss here, | ||
133 | +The final two modifiers we will discuss here, | ||
134 | C<//g> and C<//c>, concern multiple matches. | ||
135 | The modifier C<//g> stands for global matching and allows the | ||
136 | matching operator to match within a string as many times as possible. | ||
137 | @@ -1870,7 +1870,7 @@ substituted. | ||
138 | |||
139 | C<\Q>, C<\L>, C<\l>, C<\U>, C<\u> and C<\E> are actually part of | ||
140 | double-quotish syntax, and not part of regexp syntax proper. They will | ||
141 | -work if they appear in a regular expression embeddded directly in a | ||
142 | +work if they appear in a regular expression embedded directly in a | ||
143 | program, but not when contained in a string that is interpolated in a | ||
144 | pattern. | ||
145 | |||