Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed documentation errors
  • Loading branch information
kentaro committed Apr 9, 2011
1 parent 453c535 commit 6756fda
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,4 +1,7 @@
Revision history for Perl extension List::Rubyish::Circular

0.02 Sun Apr 10 00:10:19 2011
- fixed documentation errors

0.01 Sat Apr 9 22:45:47 2011
- original version
6 changes: 3 additions & 3 deletions README.mkdn
Expand Up @@ -13,8 +13,8 @@ List::Rubyish
is_deeply [qw(reikon cinnamon jkondo)], $list->cycle->to_a;
is_deeply [qw(cinnamon jkondo reikon)], $list->cycle(2)->to_a;

is_deeply [qw(reikon cinnamon jkondo)], $list->rcycle->to_a;
is_deeply [qw(cinnamon jkondo reikon)], $list->rcycle(2)->to_a;
is_deeply [qw(cinnamon jkondo reikon)], $list->rcycle->to_a;
is_deeply [qw(reikon cinnamon jkondo)], $list->rcycle(2)->to_a;

# $list is still a circular list after destracive operation
$list->push(qw(tokky));
Expand All @@ -33,7 +33,7 @@ List::Rubyish against a circular list.

## cycle ( I<$count> )

Shifts list to the left and returns new list according to
Shifts list to the left according to `$count` and returns new list
`$count`. If $count not passed in, its value is 1.

my $list = List::Rubyish::Circular->new(qw(jkondo reikon cinnamon));
Expand Down
8 changes: 4 additions & 4 deletions lib/List/Rubyish/Circular.pm
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use parent qw(List::Rubyish);

our $VERSION = '0.01';
our $VERSION = '0.02';

sub cycle {
my ($self, $count) = @_;
Expand Down Expand Up @@ -45,8 +45,8 @@ List::Rubyish
is_deeply [qw(reikon cinnamon jkondo)], $list->cycle->to_a;
is_deeply [qw(cinnamon jkondo reikon)], $list->cycle(2)->to_a;
is_deeply [qw(reikon cinnamon jkondo)], $list->rcycle->to_a;
is_deeply [qw(cinnamon jkondo reikon)], $list->rcycle(2)->to_a;
is_deeply [qw(cinnamon jkondo reikon)], $list->rcycle->to_a;
is_deeply [qw(reikon cinnamon jkondo)], $list->rcycle(2)->to_a;
# $list is still a circular list after destracive operation
$list->push(qw(tokky));
Expand All @@ -67,7 +67,7 @@ List::Rubyish against a circular list.
=over 4
Shifts list to the left and returns new list according to
Shifts list to the left according to C<$count> and returns new list
C<$count>. If $count not passed in, its value is 1.
my $list = List::Rubyish::Circular->new(qw(jkondo reikon cinnamon));
Expand Down

0 comments on commit 6756fda

Please sign in to comment.