Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a few enum and Metamodel::ClassHOW links.
  • Loading branch information
cfa committed Jan 7, 2019
1 parent cbc16fd commit ce49b48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/Language/haskell-to-p6.pod6
Expand Up @@ -166,7 +166,7 @@ And an equivalent Perl 6 example:
The code I illustrated above is an example of a
L<Product Type|https://wiki.haskell.org/Algebraic_data_type>. If instead you'd like to
write a Sum Type, there is not an exact equivalent in Perl 6. The closest thing
would be an L<Enum|/type/Enum>.
would be an L<Enum|/language/typesystem#enum>.
=begin code :lang<haskell>
data Animal = Dog | Cat | Bird | Horse
Expand Down Expand Up @@ -562,4 +562,4 @@ answer yet, that will be better than losing the information about a real need.
=end comments

# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
4 changes: 2 additions & 2 deletions doc/Language/structures.pod6
Expand Up @@ -460,7 +460,7 @@ With the first C<say> we show the class hierarchy of the metamodel class, which
in this case is L<Metamodel::ClassHOW>. It inherits directly from C<Any>,
meaning any method there can be used; it also mixes in several roles which can
give you information about the class structure and functions. But one of the
methods of that particular class is L<C<can>|/Metamodel::ClassHOW#method_can>,
methods of that particular class is L<C<can>|/type/Metamodel::ClassHOW#method_can>,
which we can use to look up whether the object can use the C<uc> (uppercase)
method, which it obviously can. However, it might not be so obvious in some
other cases, when roles are mixed in directly into a variable. For instance, in
Expand All @@ -481,4 +481,4 @@ extensively.
=end pod

# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
4 changes: 2 additions & 2 deletions doc/Type/Enumeration.pod6
Expand Up @@ -9,7 +9,7 @@
This is the role implemented by the enum-pairs in the L<C<enum> type|/language/typesystem#enum>. In general, it is used to create constant sets,
the elements of which become also constant symbols in the current namespace and
to establish a relationship between the symbols belonging to the same set. In
general, you will find c<Enumeration> in L<enum|/type/enum> types:
general, you will find c<Enumeration> in L<enum|/language/typesystem#enum> types:
enum norse-gods <Þor Oðin Loki>;
my $one-of-them = norse-gods.pick;
Expand Down Expand Up @@ -174,4 +174,4 @@ Equality of C<Enumeration> symbols:
say Norse-gods.pick() === Freija for ^3; # OUTPUT: «False␤False␤True␤»
=end pod
=end pod

0 comments on commit ce49b48

Please sign in to comment.