Skip to content

Commit 0017b9f

Browse files
committed
Noun article fixes in docs and comments
1 parent 01c26e2 commit 0017b9f

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

lib/PPI/Lexer.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ sub _lex_document {
292292
# Is this the close of a structure.
293293
if ( $Token->__LEXER__closes ) {
294294
# Because we are at the top of the tree, this is an error.
295-
# This means either a mis-parsing, or an mistake in the code.
295+
# This means either a mis-parsing, or a mistake in the code.
296296
# To handle this, we create a "Naked Close" statement
297297
$self->_add_element( $Document,
298298
PPI::Statement::UnmatchedBrace->new($Token)
@@ -1350,7 +1350,7 @@ sub _get_token {
13501350
# $self->{Tokenizer}->get_token;
13511351
# }
13521352

1353-
# Delay the addition of a insignificant elements.
1353+
# Delay the addition of insignificant elements.
13541354
# This ended up being inlined.
13551355
# sub _delay_element {
13561356
# my $self = shift;

lib/PPI/Statement/End.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PPI::Statement::End - Content after the __END__ of a module
1212
1313
__END__
1414
15-
This is part of an PPI::Statement::End statement
15+
This is part of a PPI::Statement::End statement
1616
1717
=pod
1818

lib/PPI/Token/Structure.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ sub previous_token {
177177
# Anything that slips through to here is a structure
178178
# with a closing brace, but no opening brace, so we
179179
# just have to go with it, and continue as we would
180-
# if we started with a opening brace.
180+
# if we started with an opening brace.
181181
}
182182

183183
# We can use the default implement, if we call it from the

lib/PPI/Token/Whitespace.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ sub __TOKENIZER__on_char {
247247
return 'Prototype';
248248
}
249249

250-
# An prototyped anonymous subroutine
250+
# A prototyped anonymous subroutine
251251
my $p0 = $tokens->[0];
252252
if ( $p0->isa('PPI::Token::Word') and $p0->content eq 'sub'
253253
# Maybe it's invoking a method named 'sub'

lib/PPI/Tokenizer.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ called in whatever token class we are currently in, which will examine the
889889
character at the current position, and handle it.
890890
891891
As the handler methods in the various token classes are called, they
892-
build up a output token array for the source code.
892+
build up an output token array for the source code.
893893
894894
Various parts of the Tokenizer use look-ahead, arbitrary-distance
895895
look-behind (although currently the maximum is three significant tokens),

lib/PPI/Transform.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ sub document {
123123
124124
The C<apply> method is used to apply the transform to something. The
125125
argument must be a L<PPI::Document>, or something which can be turned
126-
into a one and then be written back to again.
126+
into one and then be written back to again.
127127
128128
Currently, this list is limited to a C<SCALAR> reference, although a
129129
handler registration process is available for you to add support for

t/04_element.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ SCOPE: {
261261
my $start = $doc->first_token;
262262
isa_ok( $start, 'PPI::Token::Structure' );
263263
is( $start->content, '{', 'Got start token' );
264-
is( $start->previous_sibling, '', '->previous_sibling for an start opening brace returns false' );
264+
is( $start->previous_sibling, '', '->previous_sibling for a start opening brace returns false' );
265265
my $braces = $doc->find_first( sub {
266266
$_[1]->isa('PPI::Structure') and $_[1]->braces eq '()'
267267
} );

t/ppi_token_operator.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ OPERATOR_X: {
414414

415415
# Exhaustively test when a preceding operator implies following
416416
# 'x' is word not an operator. This detects the regression in
417-
# which '$obj->x86_convert()' was being parsed as an the x
417+
# which '$obj->x86_convert()' was being parsed as an x
418418
# operator.
419419
my %operators = (
420420
%PPI::Token::Operator::OPERATOR,

0 commit comments

Comments
 (0)