summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Burmako <xeno.by@gmail.com>2014-01-27 21:34:20 -0800
committerEugene Burmako <xeno.by@gmail.com>2014-01-27 21:34:20 -0800
commit50453ced56ee00bc46086655e3536120f1b3b60f (patch)
tree163a60c3c14d173291ece7a6c9b7e5bacad479ac
parent65575705e198713b2b0ca54d36e6e095aa214fbe (diff)
parentd167f142e8a2f4eb450c86e67d71e9199a360799 (diff)
downloadscala-50453ced56ee00bc46086655e3536120f1b3b60f.tar.gz
scala-50453ced56ee00bc46086655e3536120f1b3b60f.tar.bz2
scala-50453ced56ee00bc46086655e3536120f1b3b60f.zip
Merge pull request #3415 from xeno-by/topic/reify210x
[nomaster] corrects an error in reify’s documentation
-rw-r--r--src/reflect/scala/reflect/api/Universe.scala10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/reflect/scala/reflect/api/Universe.scala b/src/reflect/scala/reflect/api/Universe.scala
index 4928b8bb38..15fa11c6cf 100644
--- a/src/reflect/scala/reflect/api/Universe.scala
+++ b/src/reflect/scala/reflect/api/Universe.scala
@@ -75,14 +75,14 @@ abstract class Universe extends Symbols
with Printers
with Importers
{
- /** Use `refiy` to produce the abstract syntax tree representing a given Scala expression.
+ /** Use `reify` to produce the abstract syntax tree representing a given Scala expression.
*
* For example:
*
* {{{
- * val five = reify{ 5 } // Literal(Constant(5))
- * reify{ 2 + 4 } // Apply( Select( Literal(Constant(2)), newTermName("\$plus")), List( Literal(Constant(4)) ) )
- * reify{ five.splice + 4 } // Apply( Select( Literal(Constant(5)), newTermName("\$plus")), List( Literal(Constant(4)) ) )
+ * val five = reify{ 5 } // Literal(Constant(5))
+ * reify{ 5.toString } // Apply(Select(Literal(Constant(5)), TermName("toString")), List())
+ * reify{ five.splice.toString } // Apply(Select(five, TermName("toString")), List())
* }}}
*
* The produced tree is path dependent on the Universe `reify` was called from.
@@ -93,4 +93,4 @@ abstract class Universe extends Symbols
// implementation is hardwired to `scala.reflect.reify.Taggers`
// using the mechanism implemented in `scala.tools.reflect.FastTrack`
def reify[T](expr: T): Expr[T] = ??? // macro
-} \ No newline at end of file
+}