diff --git a/_ja/overviews/macros/overview.md b/_ja/overviews/macros/overview.md index e100219d2b..adb6eb4105 100644 --- a/_ja/overviews/macros/overview.md +++ b/_ja/overviews/macros/overview.md @@ -308,7 +308,7 @@ Scala コードの生成については[リフレクションの概要](http://d ### 警告とエラーの報告 ユーザと対話するための正式な方法は `scala.reflect.macros.FrontEnds` のメソッドを使うことだ。 -`c.error` はコンパイルエラーを報告し、`c.info` は警告を発令し、`c.abort` はエラーを報告しマクロの実行を停止する。 +`c.error` はコンパイルエラーを報告し、`c.warning` は警告を発令し、`c.abort` はエラーを報告しマクロの実行を停止する。 scala> def impl(c: Context) = c.abort(c.enclosingPosition, "macro has reported an error") diff --git a/_overviews/macros/overview.md b/_overviews/macros/overview.md index 09c195ca01..b9d2628c4b 100644 --- a/_overviews/macros/overview.md +++ b/_overviews/macros/overview.md @@ -298,7 +298,7 @@ As the printout shows, nothing dramatic happens. Compiler guards itself against ### Reporting warnings and errors The canonical way to interact with the user is through the methods of `scala.reflect.macros.FrontEnds`. -`c.error` reports a compilation error, `c.info` issues a warning, `c.abort` reports an error and terminates +`c.error` reports a compilation error, `c.warning` issues a warning, `c.abort` reports an error and terminates execution of a macro. scala> def impl(c: Context) =