Description: Fix spelling errors
Author: Bart Martens <bartm@debian.org>
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-08-23

--- a/tools/xml_spellcheck/xml_spellcheck
+++ b/tools/xml_spellcheck/xml_spellcheck
@@ -184,7 +184,7 @@
 
 =item --version
 
-Dislay the tool version and exit
+Display the tool version and exit
 
 =item --help
 
--- a/lib/XML/Twig.pm
+++ b/lib/XML/Twig.pm
@@ -5793,7 +5793,7 @@
       if( $index)
         { return qq{\$_[0]->{gi} == $index}; }
       elsif( defined $css_sel && $css_sel == 0 ) {
-          # css_sel explicitely set to 0 forces treating names with dots as just plain tag names
+          # css_sel explicitly set to 0 forces treating names with dots as just plain tag names
           my $new_index = XML::Twig::_add_gi( $full_gi );
           return qq{(\$_[0]->{gi} == $new_index)};
       }
@@ -10376,7 +10376,7 @@
 cumbersome C<div[@class=~/\bheader\b/]>.
 
 Note that the C<tag.class> syntax is supported in navigation expressions,
-unless C<css_sel> is explicitely set to 0.
+unless C<css_sel> is explicitly set to 0.
 
 =item elt_class
 
@@ -14052,7 +14052,7 @@
 The fix is either to upgrade to Perl 5.16 or later (C<perlbrew> is a great
 tool to manage several installations of perl on the same machine).
 
-An other, NOT RECOMMENDED, way of fixing the problem, is to switch off weak
+Another, NOT RECOMMENDED, way of fixing the problem, is to switch off weak
 references by writing C<XML::Twig::_set_weakrefs( 0);> at the top of the code.
 This is totally unsupported, and may lead to other problems though.
 
