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 30, 2024
1 parent 0eda2a5 commit 0521287
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 @@ -1155,6 +1155,7 @@ Pravus <[email protected]>
Premchai <[email protected]>
Prymmer/Kahn <[email protected]>
pxm <[email protected]>
pyrrhlin <[email protected]>
Quentin Fennessy <[email protected]>
Radu Greab <[email protected]>
raf <[email protected]>
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 0521287

Please sign in to comment.