Skip to content

Commit eac64c3

Browse files
committed
Fix spelling of 'unrecognised' to en_US version
1 parent 5863d27 commit eac64c3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

class.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ XS(injected_constructor)
238238
while((he = hv_iternext(params)))
239239
sv_catpvf(paramnames, ", %" SVf, SVfARG(HeSVKEY_force(he)));
240240

241-
croak("Unrecognised parameters for %" HvNAMEf_QUOTEDPREFIX " constructor: %" SVf,
241+
croak("Unrecognized parameters for %" HvNAMEf_QUOTEDPREFIX " constructor: %" SVf,
242242
HvNAMEfARG(stash), SVfARG(paramnames));
243243
}
244244

pod/perldiag.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7544,7 +7544,7 @@ The message attempts to include the name of the called subroutine. If
75447544
the subroutine has been aliased, the subroutine's original name will be
75457545
shown, regardless of what name the caller used.
75467546

7547-
=item Unrecognised parameters for "%s" constructor: %s
7547+
=item Unrecognized parameters for "%s" constructor: %s
75487548

75497549
(F) You called new on a class but supplied a parameter name that
75507550
didn't match a class field name.

t/class/construct.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ use builtin qw( blessed reftype );
3333
is($obj+0, builtin::refaddr($obj), 'numified object');
3434
like("$obj", qr/^Testcase1=OBJECT\(0x[[:xdigit:]]+\)$/, 'stringified object' );
3535

36-
ok(!eval { Testcase1->new(x => 123, y => 456); 1 }, 'Unrecognised parameter fails');
37-
like($@, qr/^Unrecognised parameters for "Testcase1" constructor: y at /,
38-
'Exception thrown by constructor for unrecogniser parameter');
36+
ok(!eval { Testcase1->new(x => 123, y => 456); 1 }, 'Unrecognized parameter fails');
37+
like($@, qr/^Unrecognized parameters for "Testcase1" constructor: y at /,
38+
'Exception thrown by constructor for unrecognized parameter');
3939
}
4040

4141
{

0 commit comments

Comments
 (0)