Skip to content

Commit

Permalink
Fixed word wrap in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
qrazhan committed Dec 7, 2011
1 parent b759316 commit 9b5461a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/perl5i/2/ARRAY.pm
Expand Up @@ -49,8 +49,10 @@ method as_hash{
return wantarray ? %result : \%result;
}

# for the first position in the array, generate a random number that gives that element an n/N chance of being picked (where n is the number of elements to pick and N is the total array size);
# repeat for the rest of the array, each time altering the probability of the element being picked to reflect the number of elements picked so far and the number left.
# for the first position in the array, generate a random number that gives
# that element an n/N chance of being picked (where n is the number of elements to pick and N is the total array size);
# repeat for the rest of the array, each time altering the probability of
# the element being picked to reflect the number of elements picked so far and the number left.
method pick ( $num ){
Carp::croak("pick() takes the number of elements to pick")
unless defined $num;
Expand Down

0 comments on commit 9b5461a

Please sign in to comment.