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:06 GMT
Repository: groovy
Updated Branches:
  refs/heads/master d96568429 -> 1a57775ec


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/1a57775e
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/1a57775e
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/1a57775e

Branch: refs/heads/master
Commit: 1a57775ec6bb9e9c7b52cab48d6f6c47908d5b68
Parents: d965684
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:55:47 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/1a57775e/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 4da6708..1551f3e 100644
--- a/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
+++ b/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
@@ -9011,12 +9011,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