Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A77D6200B74 for ; Thu, 1 Sep 2016 14:56:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A5C8C160AB5; Thu, 1 Sep 2016 12:56:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id EC504160AAE for ; Thu, 1 Sep 2016 14:56:07 +0200 (CEST) Received: (qmail 41861 invoked by uid 500); 1 Sep 2016 12:56:07 -0000 Mailing-List: contact commits-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list commits@groovy.apache.org Received: (qmail 41852 invoked by uid 99); 1 Sep 2016 12:56:07 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2016 12:56:07 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id E6C7DE02DA; Thu, 1 Sep 2016 12:56:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: paulk@apache.org To: commits@groovy.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: groovy git commit: fix documentation for Iterable.last() Date: Thu, 1 Sep 2016 12:56:06 +0000 (UTC) archived-at: Thu, 01 Sep 2016 12:56:08 -0000 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 Authored: Wed Aug 31 16:38:10 2016 -0700 Committer: paulk 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 * - * 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 */