Skip to content

Commit

Permalink
pod: fields.pm corrections
Browse files Browse the repository at this point in the history
confusing word order, clearly was intended to be
'as (compact and) fast as'..

also, 'fewer' elements rather than 'less'
  • Loading branch information
myrrhlin committed Oct 29, 2024
1 parent 0eda2a5 commit f91e8af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/base/lib/fields.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ unless( eval q{require warnings::register; warnings::register->import; 1} ) {
}
our %attr;

our $VERSION = '2.25';
our $VERSION = '2.26';
$VERSION =~ tr/_//d;

# constant.pm is slow
Expand Down Expand Up @@ -252,7 +252,7 @@ to subclasses.
Also, B<in Perl 5.8.x and earlier>, this pragma uses pseudo-hashes, the
effect being that you can have objects with named fields which are as
compact and as fast arrays to access, as long as the objects are
compact and fast as arrays to access, as long as the objects are
accessed through properly typed variables.
The following functions are supported:
Expand Down Expand Up @@ -293,7 +293,7 @@ pseudo-hashes directly.
If the first argument is a reference to an array, the pseudo-hash will
be created with keys from that array. If a second argument is supplied,
it must also be a reference to an array whose elements will be used as
the values. If the second array contains less elements than the first,
the values. If the second array contains fewer elements than the first,
the trailing elements of the pseudo-hash will not be initialized.
This makes it particularly useful for creating a pseudo-hash from
subroutine arguments:
Expand Down

0 comments on commit f91e8af

Please sign in to comment.