Skip to content

Commit 8dbc66b

Browse files
committed
Note arg-less Complex.new call
1 parent 9217269 commit 8dbc66b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

doc/Type/Complex.pod6

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ Defined as:
3030
Creates a new C<Complex> object from real and imaginary parts.
3131
3232
my $complex = Complex.new(1, 1);
33+
say $complex; # OUTPUT: «1+1i␤»
34+
35+
When created without arguments, both parts are considered to be zero.
36+
37+
say Complex.new; # OUTPUT: «0+0i␤»
3338
3439
=head2 method re
3540
@@ -208,4 +213,4 @@ a warning about using an uninitialized value in numeric context and then returns
208213
209214
=end pod
210215

211-
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6
216+
# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)