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 authored and jkeenan committed Oct 30, 2024
1 parent 7707ee7 commit a97e8c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,7 @@ Pravus <pravus@cpan.org>
Premchai <premchai21@yahoo.com>
Prymmer/Kahn <pvhp@best.com>
pxm <pxm@nubz.org>
pyrrhlin <1197072+myrrhlin@users.noreply.github.com>
Quentin Fennessy <quentin@arrakeen.amd.com>
Radu Greab <radu@netsoft.ro>
raf <raf@tradingpost.com.au>
Expand Down
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 a97e8c6

Please sign in to comment.