File tree 1 file changed +4
-4
lines changed
src/reflect/scala/reflect/api
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -81,14 +81,14 @@ abstract class Universe extends Symbols
81
81
with Liftables
82
82
with Quasiquotes
83
83
{
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.
85
85
*
86
86
* For example:
87
87
*
88
88
* {{{
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() )
92
92
* }}}
93
93
*
94
94
* The produced tree is path dependent on the Universe `reify` was called from.
You can’t perform that action at this time.
0 commit comments