Permalink
Browse files

added comment, suggested by mberends++

  • Loading branch information...
masak committed Jan 31, 2009
1 parent 092268d commit 1fb7066ffc2fb9b3745432021ff787792151b3d6
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Druid/View/Text.pm
View
@@ -33,6 +33,9 @@ class Druid::View::Text is Druid::View {
# Returns a string containing an ASCII picture of an empty druid board of
# the given size.
sub make_empty_board($size) {
+ # The 'join $sep, gather { ... }' pattern makes us put a long string
+ # together, without having to refer to the same variable over and
+ # over.
return join "\n", gather {
take '';
take my $heading

0 comments on commit 1fb7066

Please sign in to comment.