Skip to content

Commit

Permalink
fix off-by-one error in my ArrayRepr.pm tightening
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Feb 7, 2012
1 parent 2e6d59c commit f8cc194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ArrayRepr.pm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ sub new {
# fields is an array of (map from attribute name to attribute index)
my @fields;
for my $attributes ( map $_->{attributes}, @$classes ) {
my $field_index = 0;
my $field_index = 1;
push @fields, { map { $_ => $field_index++ } @$attributes };
}

Expand Down

0 comments on commit f8cc194

Please sign in to comment.