Skip to content

Commit b0d5cf9

Browse files
committed
Deindent for #2921
1 parent b28632f commit b0d5cf9

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

doc/Type/Signature.pod6

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -475,30 +475,30 @@ consistency, it is the only form accepted on this site.
475475
The return type arrow has to be placed at the end of the parameter list,
476476
with or without a C<,> before it.
477477
478-
=begin code
479-
sub greeting1(Str $name --> Str) { say "Hello, $name" } # Valid
480-
sub greeting2(Str $name, --> Str) { say "Hello, $name" } # Valid
478+
=begin code
479+
sub greeting1(Str $name --> Str) { say "Hello, $name" } # Valid
480+
sub greeting2(Str $name, --> Str) { say "Hello, $name" } # Valid
481481
482-
sub favorite-number1(--> 42) { } # OUTPUT: 42
483-
sub favorite-number2(--> 42) { return } # OUTPUT: 42
484-
=end code
482+
sub favorite-number1(--> 42) { } # OUTPUT: 42
483+
sub favorite-number2(--> 42) { return } # OUTPUT: 42
484+
=end code
485485
486486
If the type constraint is a constant expression, it is used as the
487487
return value of the routine. Any return statement in that routine has to
488488
be argumentless.
489489
490-
=begin code
491-
sub foo(Str $word --> 123) { say $word; return; }
492-
my $value = foo("hello"); # OUTPUT: hello
493-
say $value; # OUTPUT: 123
494-
=end code
495-
496-
=begin code :skip-test<compile time error>
497-
# The code below will not compile
498-
sub foo(Str $word --> 123) { say $word; return $word; }
499-
my $value = foo("hello");
500-
say $value;
501-
=end code
490+
=begin code
491+
sub foo(Str $word --> 123) { say $word; return; }
492+
my $value = foo("hello"); # OUTPUT: hello
493+
say $value; # OUTPUT: 123
494+
=end code
495+
496+
=begin code :skip-test<compile time error>
497+
# The code below will not compile
498+
sub foo(Str $word --> 123) { say $word; return $word; }
499+
my $value = foo("hello");
500+
say $value;
501+
=end code
502502
503503
=head4 C<returns>
504504

0 commit comments

Comments
 (0)