@TailRecursive doc should read "Method annotation ..." (closes #461)
Minor text fixes to TailRecursive annotation's documentation: - it is a method annotation, not a class annotation - since I was already here, added an 's' to make pluralization of "recursive calls" consistent Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/46318ae4 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/46318ae4 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/46318ae4 Branch: refs/heads/GROOVY_2_4_X Commit: 46318ae4707bcfff1739a5d56fc8e444b5203596 Parents: 96b2e03 Author: Leo Gertsenshteyn <[email protected]> Authored: Wed Nov 9 15:09:58 2016 -0800 Committer: John Wagenleitner <[email protected]> Committed: Wed Nov 16 15:40:35 2016 -0800 ---------------------------------------------------------------------- src/main/groovy/transform/TailRecursive.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/46318ae4/src/main/groovy/transform/TailRecursive.groovy ---------------------------------------------------------------------- diff --git a/src/main/groovy/transform/TailRecursive.groovy b/src/main/groovy/transform/TailRecursive.groovy index e2bea42..afbee50 100644 --- a/src/main/groovy/transform/TailRecursive.groovy +++ b/src/main/groovy/transform/TailRecursive.groovy @@ -26,7 +26,7 @@ import java.lang.annotation.RetentionPolicy import java.lang.annotation.Target /** - * Class annotation used to transform method with tail recursive calls into iterative methods automagically + * Method annotation used to transform methods with tail recursive calls into iterative methods automagically * since the JVM cannot do this itself. This works for both static and non-static methods. * <p/> * It allows you to write a method like this:
