Skip to content

Commit bfd97bf

Browse files
committed
Less accidental markdown refs #2022
1 parent c2fdf32 commit bfd97bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/Rational.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
99
C<Rational> is the common role for numbers that are stored as pairs of
1010
numerator and denominator. It is parameterized by the types of the numerator (C<NuT>)
11-
and denominator (C<DeT>). By default, these are C<Int>, but other types of `Rational` are possible by using a different parameterization
11+
and denominator (C<DeT>). By default, these are C<Int>, but other types of C<Rational> are possible by using a different parameterization
1212
1313
class Positive does Rational[UInt] {};
1414
my Positive $one-third = Positive.new(1,3);
1515
say $one-third; # OUTPUT: «0.333333␤»
1616
my Positive $fail =Positive.new(-2,3); # OUTPUT: «Type check failed in binding to parameter 'nu'; expected UInt but got Int (-2)␤»
1717
18-
Please note that, since `DeT` is by default equal to `NuT`, in this case both are instantiated to C<UInt>. Built into Perl 6 are L<Rat> and L<FatRat>, which both do the C<Rational> role.
18+
Please note that, since C<DeT> is by default equal to C<NuT>, in this case both are instantiated to C<UInt>. Built into Perl 6 are L<Rat> and L<FatRat>, which both do the C<Rational> role.
1919
2020
=head1 Methods
2121

0 commit comments

Comments
 (0)