summaryrefslogtreecommitdiff
path: root/lib/fields.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-27 22:27:46 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-27 22:27:46 +0000
commit33e06c89116da420821234eb364a70b215b00a8d (patch)
tree97e116ea8273c4efd7b0762ec564e492911ce18c /lib/fields.pm
parent479ba38336aaacaf3a7e00a4662d83e2dc833197 (diff)
downloadperl-33e06c89116da420821234eb364a70b215b00a8d.tar.gz
typos in change#5293
p4raw-link: @5293 on //depot/perl: 479ba38336aaacaf3a7e00a4662d83e2dc833197 p4raw-id: //depot/perl@5294
Diffstat (limited to 'lib/fields.pm')
-rw-r--r--lib/fields.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/fields.pm b/lib/fields.pm
index 734cc0db1d..5a84e28f2e 100644
--- a/lib/fields.pm
+++ b/lib/fields.pm
@@ -57,7 +57,7 @@ class fields using this pragma, then the operation is turned into an
array access at compile time.
The related C<base> pragma will combine fields from base classes and any
-fields declared using the C<fields> pragma. This enables fields
+fields declared using the C<fields> pragma. This enables field
inheritance to work properly.
Field names that start with an underscore character are made private to
@@ -85,9 +85,9 @@ This makes it possible to write a constructor like this:
sub new {
my Critter::Sounds $self = shift;
- $self = fields::new($class) unless ref $self;
+ $self = fields::new($self) unless ref $self;
$self->{cat} = 'meow'; # scalar element
- @$self->{'dog','bird'} = ('bark','tweet'); # slice
+ @$self{'dog','bird'} = ('bark','tweet'); # slice
return $self;
}