From fe8a698626b9fc09519707e23737e9b9ab8aaf3e Mon Sep 17 00:00:00 2001 From: Paul Johnson Date: Mon, 15 Jan 2024 14:22:25 +0100 Subject: [PATCH] Fix a few spelling and grammar mistakes --- bin/perltidy | 16 ++++++++-------- lib/Perl/Tidy.pm | 6 +++--- lib/Perl/Tidy.pod | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bin/perltidy b/bin/perltidy index 28e5854a..814ef0a6 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -1115,7 +1115,7 @@ The B<-nibp=string> parameter may be used to change the marker for non-indenting braces. The default is equivalent to -nibp='#<<<'. The string that you enter must begin with a # and should be in quotes as necessary to get past the command shell of your system. This string is the leading text of a -regex pattern that is constructed by appending pre-pending a '^' and appending +regex pattern that is constructed by prepending a '^' and appending a'\s', so you must also include backslashes for characters to be taken literally rather than as patterns. @@ -4745,7 +4745,7 @@ B<--one-line-block-exclusion-list> described below. When the B style is used, the default treatment of one-line blocks may interfere with the cuddled style. In this case, the default behavior may -be changed with the flag B<--cuddled-break-option=n> described elsehwere. +be changed with the flag B<--cuddled-break-option=n> described elsewhere. When an existing one-line block is longer than the maximum line length, and must therefore be broken into multiple lines, perltidy checks for and adds any @@ -5104,7 +5104,7 @@ B<--use-feature='noclass'>. This tells perltidy B to treat words B, B (B<--use-feature> not defined). This is the DEFAULT and recommended setting. In this case perltidy will try to automatically handle both the newer --use-feature 'class' syntax as well as some conflicting -uses of some of these special words by exisiting modules. +uses of some of these special words by existing modules. =back @@ -5262,7 +5262,7 @@ the B<-npro> option. =item * -Any parameter in the F<.perltidyrc> file can be overriden with a replacement +Any parameter in the F<.perltidyrc> file can be overridden with a replacement value on the command line. This is because the command line is processed after the F<.perltidyrc> file. @@ -5519,7 +5519,7 @@ the word immediately before the opening brace. In addition, there are a few symbols for special block types, as follows: if elsif else for foreach ... any keyword introducing a block - sub - any sub or anynomous sub + sub - any sub or anonymous sub asub - any anonymous sub * - any block except nameless blocks + - any nested inner block loop @@ -5643,7 +5643,7 @@ These are variables which are declared with a C and not referenced again within their scope. Calling them B is convenient but not really accurate; this is a "gray area" for a program. There are many reasons for having such variables. For example, they might occur in a list of values -provided by another routine or data structure, and therefor must be listed, +provided by another routine or data structure, and therefore must be listed, even though they might not be referenced again. Or they might be defined for possible future program development, clarity or debugging. B sometimes they can occur due to being orphaned by a coding change, due to a misspelling, @@ -5676,7 +5676,7 @@ For example, The default is not to do any of these checks, and it can also be indicated with B<-wvt=0>. -To restrict the check to a specfic set warnings, set the input B to be +To restrict the check to a specific set warnings, set the input B to be a space-separated or comma-separated list of the letters associated with the types of variables to be checked. For example: @@ -5957,7 +5957,7 @@ corresponding abbreviation: identifier identifier i bareword, function bareword w keyword keyword k - quite, pattern quote q + quote, pattern quote q here doc text here-doc-text h here doc target here-doc-target hh punctuation punctuation pu diff --git a/lib/Perl/Tidy.pm b/lib/Perl/Tidy.pm index 8fc7d836..bb15180c 100644 --- a/lib/Perl/Tidy.pm +++ b/lib/Perl/Tidy.pm @@ -698,7 +698,7 @@ EOM my $flag = shift; if ($flag) { goto ERROR_EXIT } else { goto NORMAL_EXIT } - croak "unexpectd return to Exit"; + croak "unexpected return to Exit"; } ## end sub Exit sub Die { @@ -1628,7 +1628,7 @@ sub get_decoded_string_buffer { # arrived from standard input or from a string ref. For example # 'perltidy stream will indicate the cause of any problem. -An exit value of 2 indicates that perltidy ran to completion but there there +An exit value of 2 indicates that perltidy ran to completion but there are warning messages in the B stream related to parameter errors or conflicts and/or warning messages in the B stream relating to possible syntax errors in the source code being tidied. -- 2.39.5