summaryrefslogtreecommitdiff
path: root/src/content/pastebins/2019/12
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/pastebins/2019/12')
-rw-r--r--src/content/pastebins/2019/12/29/raku-tuple-type.adoc24
1 files changed, 7 insertions, 17 deletions
diff --git a/src/content/pastebins/2019/12/29/raku-tuple-type.adoc b/src/content/pastebins/2019/12/29/raku-tuple-type.adoc
index 3d5ff34..8bb7250 100644
--- a/src/content/pastebins/2019/12/29/raku-tuple-type.adoc
+++ b/src/content/pastebins/2019/12/29/raku-tuple-type.adoc
@@ -1,18 +1,7 @@
----
+= Raku tuple type annotation
-title: Raku tuple type annotation
-
-date: 2019-12-29
-
-layout: post
-
-lang: en
-
-ref: raku-tuple-type-annotation
-
----
-
-```perl
+[source,perl]
+----
# Single Str return value: this works
sub f1(Str $in --> Str) {
$in;
@@ -27,11 +16,12 @@ sub f2(Str $in) {
sub f2(Str $in --> (Str, Str)) {
($in, $in);
}
-```
+----
Error log is:
-```perl
+[source,perl]
+----
===SORRY!=== Error while compiling /path/to/my/file
Malformed return value
-```
+----