Skip to content

Commit

Permalink
Map and Range: Iterable is a role; use 'does' not 'is'
Browse files Browse the repository at this point in the history
  • Loading branch information
softmoth authored and moritz committed May 1, 2019
1 parent 233450d commit c14584b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions doc/Type/Map.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
=SUBTITLE Immutable mapping from strings to values
=for code :skip-test<compile time error>
class Map does Associative is Iterable { }
class Map does Associative does Iterable { }
A Map is an immutable mapping from string keys to values of arbitrary
types. It serves as a base class for L<Hash|/type/Hash>, which is mutable.
Expand Down Expand Up @@ -251,4 +251,4 @@ The returned C<Capture> will not contain any positional arguments.
=end pod

# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
2 changes: 1 addition & 1 deletion doc/Type/Range.pod6
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
=SUBTITLE Interval of ordered values
=for code :skip-test<compile time error>
class Range is Iterable does Positional {}
class Range does Iterable does Positional {}
Ranges serve two main purposes: to generate lists of consecutive
numbers or strings, and to act as a matcher to check if a number
Expand Down

0 comments on commit c14584b

Please sign in to comment.