8000 Fixed a typo · vivekimsit/scala.github.com@7c1cffd · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c1cffd

Browse files
committed
Fixed a typo
1 parent ecfaa66 commit 7c1cffd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ja/overviews/reflection/environment-universes-mirrors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ invoker ミラーを作成することができる。
9797
scala> mm()
9898
res0: Any = 2
9999

100-
`FieldMirror` はインスタンス・フィールドの get と set を行うのに使われる (メソッド同様に Scala はインスタンス・フィールドのみがある。)。作り方: `val fm = im.reflectMethod(<field or accessor symbol>)`
100+
`FieldMirror` はインスタンス・フィールドの get と set を行うのに使われる (メソッド同様に Scala はインスタンス・フィールドのみがある。)。作り方: `val fm = im.reflectField(<field or accessor symbol>)`
101101
具体例:
102102

103103
scala> class C { val x = 2; var y = 3 }

overviews/reflection/environment-universes-mirrors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ A `MethodMirror` is used for invoking instance methods (Scala only has instance
100100
scala> mm()
101101
res0: Any = 2
102102

103-
A `FieldMirror` is used for getting/setting instance fields (like methods, Scala only has instance fields, see above). Entry point: `val fm = im.reflectMethod(<field or accessor symbol>)`. Example:
103+
A `FieldMirror` is used for getting/setting instance fields (like methods, Scala only has instance fields, see above). Entry point: `val fm = im.reflectField(<field or accessor symbol>)`. Example:
104104

105105
scala> class C { val x = 2; var y = 3 }
106106
defined class C

0 commit comments

Comments
 (0)
0