Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Rename generic $name variable to $class-name
  • Loading branch information
Geoffrey Broadwell committed Nov 23, 2013
1 parent 593e24f commit f0f3e45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/PB/Model/Generator.pm
Expand Up @@ -73,8 +73,8 @@ class PB::Model::Generator {
}
}

my $name := $.gen-class-name($msg);
my $class := PB::MessageClassHOW.new_type(:$name);
my $class-name := $.gen-class-name($msg);
my $class := PB::MessageClassHOW.new_type(:name($class-name));
$class.HOW.add_parent($class, PB::Message);

for $msg.fields -> $field {
Expand Down Expand Up @@ -109,7 +109,7 @@ class PB::Model::Generator {
}
$class.^compose;
# say $class.^perl;
take $name, $class;
take $class-name, $class;
}
}

Expand Down

0 comments on commit f0f3e45

Please sign in to comment.