Skip to content

Commit 18c9196

Browse files
committed
Merge pull request scala#3414 from xeno-by/topic/reify
corrects an error in reify’s documentation
2 parents 84a4f64 + eacf187 commit 18c9196

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/reflect/scala/reflect/api/Universe.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ abstract class Universe extends Symbols
8181
with Liftables
8282
with Quasiquotes
8383
{
84-
/** Use `refiy` to produce the abstract syntax tree representing a given Scala expression.
84+
/** Use `reify` to produce the abstract syntax tree representing a given Scala expression.
8585
*
8686
* For example:
8787
*
8888
* {{{
89-
* val five = reify{ 5 } // Literal(Constant(5))
90-
* reify{ 2 + 4 } // Apply( Select( Literal(Constant(2)), newTermName("\$plus")), List( Literal(Constant(4)) ) )
91-
* reify{ five.splice + 4 } // Apply( Select( Literal(Constant(5)), newTermName("\$plus")), List( Literal(Constant(4)) ) )
89+
* val five = reify{ 5 } // Literal(Constant(5))
90+
* reify{ 5.toString } // Apply(Select(Literal(Constant(5)), TermName("toString")), List())
91+
* reify{ five.splice.toString } // Apply(Select(five, TermName("toString")), List())
9292
* }}}
9393
*
9494
* The produced tree is path dependent on the Universe `reify` was called from.

0 commit comments

Comments
 (0)