8000 Merge pull request #196 from xeno-by/master · lrlucena/scala.github.com@6e3aa3a · GitHub
[go: up one dir, main page]

Skip to content

Commit 6e3aa3a

Browse files
committed
Merge pull request scala#196 from xeno-by/master
fixes a typo in the quasiquote guide
2 parents ee7ff85 + 562a487 commit 6e3aa3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

overviews/macros/quasiquotes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ However even seasoned macro writers will admit that this code, even though it's
5252

5353
val newdefs = body collect {
5454
case q"def $name[..$tparams](...$vparamss): $tpt = $body" =>
55-
val tpt1 = if (tpt.isEmpty) tpt else tq"Future[$tresult]"
55+
val tpt1 = if (tpt.isEmpty) tpt else tq"Future[$tpt]"
5656
val name1 = newTermName("async" + name.capitalize)
5757
q"def $name1[..$tparams](...$vparamss): $tpt1 = future { $body }"
5858
}

0 commit comments

Comments
 (0)
0