Repository: incubator-groovy Updated Branches: refs/heads/GROOVY_2_4_X ed7771b68 -> f9cefa3a9
Fix formatting in extension modules (closes #113) Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/f9cefa3a Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/f9cefa3a Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/f9cefa3a Branch: refs/heads/GROOVY_2_4_X Commit: f9cefa3a941b689f8210d622ac1acf959e60522a Parents: ed7771b Author: Aseem Bansal <anshban...@users.noreply.github.com> Authored: Sat Sep 5 12:17:56 2015 +0530 Committer: pascalschumacher <pascalschumac...@gmx.net> Committed: Sun Sep 6 08:59:33 2015 +0200 ---------------------------------------------------------------------- src/spec/doc/core-metaprogramming.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/f9cefa3a/src/spec/doc/core-metaprogramming.adoc ---------------------------------------------------------------------- diff --git a/src/spec/doc/core-metaprogramming.adoc b/src/spec/doc/core-metaprogramming.adoc index 92e352e..f00743c 100644 --- a/src/spec/doc/core-metaprogramming.adoc +++ b/src/spec/doc/core-metaprogramming.adoc @@ -600,7 +600,7 @@ public static String getText(File file, String charset) throws IOException { } ---------------------------------------------------------------------------- -You may notice that the extension method is defined using a static method in a ``helper'' class (where various extension +You may notice that the extension method is defined using a static method in a helper class (where various extension methods are defined). The first argument of the `getText` method corresponds to the receiver, while additional parameters correspond to the arguments of the extension method. So here, we are defining a method called _getText_ on the `File` class (because the first argument is of type `File`), which takes a single argument as a parameter (the encoding `String`).