Skip to content

Commit 7768bb7

Browse files
authored
Additional fix
1 parent 9a4da9d commit 7768bb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/reflection/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ which makes all classes and types available that are loaded by the classloader
171171
that also loaded the class of `p` (`Purchase`), which we need in order to
172172
access member `shipped`.
173173

174-
scala> val shippingTermSymb = ru.typeOf[Purchase].decls(ru.TermName("shipped")).asTerm
174+
scala> val shippingTermSymb = ru.typeOf[Purchase].declaration(ru.TermName("shipped")).asTerm
175175
shippingTermSymb: scala.reflect.runtime.universe.TermSymbol = method shipped
176176

177177
We now look up the declaration of the `shipped` field, which gives us a

0 commit comments

Comments
 (0)