From 6f72d92f7a23cc69be38e5c4a1af3cb1969d1c74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ville=20Skytt=C3=A4?= Date: Wed, 9 Jun 2021 22:32:45 +0300 Subject: [PATCH] Spelling fixes --- lib/Perl/Tidy.pm | 4 ++-- lib/Perl/Tidy/Formatter.pm | 2 +- t/snippets/align35.in | 2 +- t/snippets/expect/align35.def | 2 +- t/snippets24.t | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/Perl/Tidy.pm b/lib/Perl/Tidy.pm index e13f51a0..faeea1c4 100644 --- a/lib/Perl/Tidy.pm +++ b/lib/Perl/Tidy.pm @@ -1760,7 +1760,7 @@ EOM #--------------------------------------------------------------- # Do syntax check if requested and possible - # This is permanently deactivated but the code remains for referrence + # This is permanently deactivated but the code remains for reference #--------------------------------------------------------------- my $infile_syntax_ok = 0; # -1 no 0=don't know 1 yes if ( 0 @@ -3213,7 +3213,7 @@ sub check_options { # Syntax checking is no longer supported due to concerns about executing # code in BEGIN blocks. The flag is still accepted for backwards - # compatability but is ignored if set. + # compatibility but is ignored if set. $rOpts->{'check-syntax'} = 0; # check iteration count and quietly fix if necessary: diff --git a/lib/Perl/Tidy/Formatter.pm b/lib/Perl/Tidy/Formatter.pm index 5be0fb78..81c8be3e 100644 --- a/lib/Perl/Tidy/Formatter.pm +++ b/lib/Perl/Tidy/Formatter.pm @@ -16180,7 +16180,7 @@ sub set_continuation_breaks { # or user wants to form long blocks with arrows || $rOpts_comma_arrow_breakpoints == 2 - # if -cab=3 is overriden then use -cab=2 behavior + # if -cab=3 is overridden then use -cab=2 behavior || $rOpts_comma_arrow_breakpoints == 3 && $override_cab3[$current_depth] ) diff --git a/t/snippets/align35.in b/t/snippets/align35.in index 9f3aecb7..ec2c3ae8 100644 --- a/t/snippets/align35.in +++ b/t/snippets/align35.in @@ -1,4 +1,4 @@ -# differnt module names, do not align commas (fixes rt136416) +# different module names, do not align commas (fixes rt136416) use File::Spec::Functions 'catfile', 'catdir'; use Mojo::Base 'Mojolicious', '-signatures'; diff --git a/t/snippets/expect/align35.def b/t/snippets/expect/align35.def index 5cfd61dd..e78c32a1 100644 --- a/t/snippets/expect/align35.def +++ b/t/snippets/expect/align35.def @@ -1,4 +1,4 @@ -# differnt module names, do not align commas (fixes rt136416) +# different module names, do not align commas (fixes rt136416) use File::Spec::Functions 'catfile', 'catdir'; use Mojo::Base 'Mojolicious', '-signatures'; diff --git a/t/snippets24.t b/t/snippets24.t index b570477f..8a2aba19 100644 --- a/t/snippets24.t +++ b/t/snippets24.t @@ -56,7 +56,7 @@ BEGIN { $rsources = { 'align35' => <<'----------', -# differnt module names, do not align commas (fixes rt136416) +# different module names, do not align commas (fixes rt136416) use File::Spec::Functions 'catfile', 'catdir'; use Mojo::Base 'Mojolicious', '-signatures'; @@ -752,7 +752,7 @@ my $fragment = $parser-> #parse_html_string source => "align35", params => "def", expect => <<'#12...........', -# differnt module names, do not align commas (fixes rt136416) +# different module names, do not align commas (fixes rt136416) use File::Spec::Functions 'catfile', 'catdir'; use Mojo::Base 'Mojolicious', '-signatures'; -- 2.39.5