Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed documentation errors

  • Loading branch information...
commit 6756fda2e9364f2477c45a8bbfac033df317d4fe 1 parent 453c535
@kentaro authored
Showing with 10 additions and 7 deletions.
  1. +3 −0  Changes
  2. +3 −3 README.mkdn
  3. +4 −4 lib/List/Rubyish/Circular.pm
View
3  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
View
6 README.mkdn
@@ -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));
@@ -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));
View
8 lib/List/Rubyish/Circular.pm
@@ -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) = @_;
@@ -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));
@@ -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));
Please sign in to comment.
Something went wrong with that request. Please try again.