8000 Merge pull request #503 from t-mochizuki/master · trbngr/scala.github.com@9aef08c · GitHub
[go: up one dir, main page]

Skip to content

Commit 9aef08c

Browse files
committed
Merge pull request scala#503 from t-mochizuki/master
Fixed a typo
2 parents 6542b9f + 7c1cffd commit 9aef08c

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