groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: fix documentation for Iterable.last()
Date Thu, 01 Sep 2016 12:56:41 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X f78afc91f -> bde7da49b


fix documentation for Iterable.last()


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/bde7da49
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/bde7da49
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/bde7da49

Branch: refs/heads/GROOVY_2_4_X
Commit: bde7da49b73ae0d79fd2a85a5c3f0f1483de68db
Parents: f78afc9
Author: Ken Geis <geis.ken@gmail.com>
Authored: Wed Aug 31 16:38:10 2016 -0700
Committer: paulk <paulk@asert.com.au>
Committed: Thu Sep 1 22:56:26 2016 +1000

----------------------------------------------------------------------
 src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/bde7da49/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
----------------------------------------------------------------------
diff --git a/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java b/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
index ba5499f..c2be7ab 100644
--- a/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
+++ b/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
@@ -8873,12 +8873,12 @@ public class DefaultGroovyMethods extends DefaultGroovyMethodsSupport
{
      * // check original unaltered
      * assert set == [3, 4, 2] as Set
      * </pre>
-     * The first element returned by the Iterable's iterator is returned.
+     * The last element returned by the Iterable's iterator is returned.
      * If the Iterable doesn't guarantee a defined order it may appear like
      * a random element is returned.
      *
      * @param self an Iterable
-     * @return the first item from the Iterable
+     * @return the last item from the Iterable
      * @throws NoSuchElementException if the Iterable is empty and you try to access the
last() item.
      * @since 1.8.7
      */


Mime
View raw message