diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-01-26 01:35:07 -0800 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-01-26 01:35:07 -0800 |
commit | 18c9196686410536f69f8e05b62f0cd7e0b91a8c (patch) | |
tree | 6d7c8c372049e8e60eb72851ed0fedcc2bb6770d /src | |
parent | 84a4f64cc68e776ea92d601afcf0cf5a3f8d1e69 (diff) | |
parent | eacf1875dbe085fc6ebb5bc50ff3b02c0d783be4 (diff) | |
download | scala-18c9196686410536f69f8e05b62f0cd7e0b91a8c.tar.gz scala-18c9196686410536f69f8e05b62f0cd7e0b91a8c.tar.bz2 scala-18c9196686410536f69f8e05b62f0cd7e0b91a8c.zip |
Merge pull request #3414 from xeno-by/topic/reify
corrects an error in reify’s documentation
Diffstat (limited to 'src')
-rw-r--r-- | src/reflect/scala/reflect/api/Universe.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/reflect/scala/reflect/api/Universe.scala b/src/reflect/scala/reflect/api/Universe.scala index 1c9b77581a..85a8ee0185 100644 --- a/src/reflect/scala/reflect/api/Universe.scala +++ b/src/reflect/scala/reflect/api/Universe.scala @@ -81,14 +81,14 @@ abstract class Universe extends Symbols with Liftables with Quasiquotes { - /** 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. |