Skip to content

Commit 17a2d13

Browse files
committed
fix use of its vs it's
1 parent 0017b9f commit 17a2d13

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/PPI/Token/Unknown.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ sub __TOKENIZER__on_char {
290290
return $t->_finalize_token->__TOKENIZER__on_char( $t );
291291
}
292292

293-
# It MIGHT be a label, but its probably the ?: trinary operator
293+
# It MIGHT be a label, but it's probably the ?: trinary operator
294294
$t->{class} = $t->{token}->set_class( 'Operator' );
295295
return $t->{class}->__TOKENIZER__on_char( $t );
296296
}

lib/PPI/Token/Whitespace.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ sub __TOKENIZER__on_char {
369369
return 'Regexp::Match' if $prec eq '';
370370

371371
# What about the char after the slash? There's some things
372-
# that would be highly illogical to see if its an operator.
372+
# that would be highly illogical to see if it's an operator.
373373
my $next_char = substr $t->{line}, $t->{line_cursor} + 1, 1;
374374
if ( defined $next_char and length $next_char ) {
375375
if ( $next_char =~ /(?:\^|\[|\\)/ ) {

lib/PPI/Token/Word.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ sub __TOKENIZER__commit {
316316

317317
my $token_class;
318318
if ( $word =~ /\:/ ) {
319-
# Since its not a simple identifier...
319+
# Since it's not a simple identifier...
320320
$token_class = 'Word';
321321

322322
} elsif ( $KEYWORDS{$word} and $t->__current_token_is_forced_word ) {
@@ -336,11 +336,11 @@ sub __TOKENIZER__commit {
336336
# Get tokens early to be sure to not disturb state set up by pos and m//gc.
337337
my $tokens = $t->_previous_significant_tokens(1);
338338

339-
# If the next character is a ':' then its a label...
339+
# If the next character is a ':' then it's a label...
340340
pos $t->{line} = $t->{line_cursor};
341341
if ( $t->{line} =~ m/\G(\s*:)(?!:)/gc ) {
342342
if ( $tokens and $tokens->[0]->{content} eq 'sub' ) {
343-
# ... UNLESS its after 'sub' in which
343+
# ... UNLESS it's after 'sub' in which
344344
# case it is a sub name and an attribute
345345
# operator.
346346
# We COULD have checked this at the top

lib/PPI/Token/_QuoteEngine/Full.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ BEGIN {
4242

4343
# The final ( and kind of depreciated ) "first match only" one is not
4444
# used yet, since I'm not sure on the context differences between
45-
# this and the trinary operator, but its here for completeness.
45+
# this and the trinary operator, but it's here for completeness.
4646
'?' => { operator => undef, braced => 0, separator => '?', _sections => 1, modifiers => 1 },
4747
);
4848
}

0 commit comments

Comments
 (0)