8000 fixes a typo in the quasiquote guide · lrlucena/scala.github.com@562a487 · GitHub
[go: up one dir, main page]

Skip to content

Commit 562a487

Browse files
committed
fixes a typo in the quasiquote guide
1 parent 4a04801 commit 562a487

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