Skip to content

Commit dfd3cdb

Browse files
committed
Eliminates reference to preview and reflow, refs #2687
1 parent 5b0448d commit dfd3cdb

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

doc/Language/numerics.pod6

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ type, would produce a fractional number, without any rounding performed.
2424
say 4/5; # OUTPUT: «0.8␤»
2525
=end code
2626
27-
The type produced by this division is either a L<Rat|/type/Rat> or a L<Num|/type/Num> type. The
28-
L<Rat|/type/Rat> is produced if, after reduction, the fraction's denominator is smaller
29-
than 64 bits, otherwise a L<Num|/type/Num> type is produced.
27+
The type produced by this division is either a L<Rat|/type/Rat> or a
28+
L<Num|/type/Num> type. The L<Rat|/type/Rat> is produced if, after reduction, the
29+
fraction's denominator is smaller than 64 bits, otherwise a L<Num|/type/Num>
30+
type is produced.
3031
31-
The L<div|/routine/div> and L<narrow|/routine/narrow> routines can be helpful if you wish to end
32-
up with an L<Int|/type/Int> result, whenever possible. The L<div|/routine/div> operator performs
33-
integer division, discarding the remainder, while L<narrow|/routine/narrow> fits the number
34-
into the narrowest type it'll fit:
32+
The L<div|/routine/div> and L<narrow|/routine/narrow> routines can be helpful if
33+
you wish to end up with an L<Int|/type/Int> result, whenever possible. The
34+
L<div|/routine/div> operator performs integer division, discarding the
35+
remainder, while L<narrow|/routine/narrow> fits the number into the narrowest
36+
type it'll fit:
3537
3638
=begin code
3739
say 5 div 2; # OUTPUT: «2␤»
@@ -633,9 +635,8 @@ my int $a-native = -42;
633635
Since there are no classes behind native types, there are no type objects you'd
634636
normally get with variables that haven't been initialized. Thus, native types
635637
are automatically initialized to zero. In 6.c language, native floating point
636-
types (C<num>, C<num32>, and C<num64>) are initialized to value C<NaN>; in 6.d
637-
language the default is C<0e0> (early implementation available in Rakudo
638-
2018.08, under C<use v6.d.PREVIEW> pragma).
638+
types (C<num>, C<num32>, and C<num64>) were initialized to value C<NaN>; in 6.d
639+
language the default is C<0e0>.
639640
640641
=head2 Native dispatch
641642

doc/Type/Sub.pod6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ them. Use the C<&>-sigil to call them.
2222
2323
X<|my (Sub)>X<|our (Sub)>
2424
Subs can be nested and scoped with C<my> and C<our>, whereby C<my> is the
25-
default. A sub declared with C<my> can not be reached from any outer scope. An
25+
default. A sub declared with C<my> cannot be reached from any outer scope. An
2626
C<our> scoped sub will not redefine a sub of the same name in the outer scope.
2727
Any sub can be accessed via a closure from any outer scope. For instance, in
2828
this example

0 commit comments

Comments
 (0)