Return-Path: X-Original-To: apmail-groovy-commits-archive@minotaur.apache.org Delivered-To: apmail-groovy-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D1CF9186B4 for ; Sat, 18 Jul 2015 08:58:20 +0000 (UTC) Received: (qmail 58371 invoked by uid 500); 18 Jul 2015 08:58:20 -0000 Delivered-To: apmail-groovy-commits-archive@groovy.apache.org Received: (qmail 58339 invoked by uid 500); 18 Jul 2015 08:58:20 -0000 Mailing-List: contact commits-help@groovy.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.incubator.apache.org Delivered-To: mailing list commits@groovy.incubator.apache.org Received: (qmail 58330 invoked by uid 99); 18 Jul 2015 08:58:20 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Jul 2015 08:58:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 569DF1866C6 for ; Sat, 18 Jul 2015 08:58:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.791 X-Spam-Level: * X-Spam-Status: No, score=1.791 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id gBe11UfAI3qn for ; Sat, 18 Jul 2015 08:58:11 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 5D1D820627 for ; Sat, 18 Jul 2015 08:58:11 +0000 (UTC) Received: (qmail 58311 invoked by uid 99); 18 Jul 2015 08:58:10 -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; Sat, 18 Jul 2015 08:58:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D4BCDE0F79; Sat, 18 Jul 2015 08:58:10 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: pascalschumacher@apache.org To: commits@groovy.incubator.apache.org Message-Id: <7577b9c949194d87be623995cd4fe016@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-groovy git commit: Grammar mistake (closes #63) Date: Sat, 18 Jul 2015 08:58:10 +0000 (UTC) Repository: incubator-groovy Updated Branches: refs/heads/GROOVY_2_4_X 415d9ff16 -> 58a6b7383 Grammar mistake (closes #63) Project: http://git-wip-us.apache.org/repos/asf/incubator-groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-groovy/commit/58a6b738 Tree: http://git-wip-us.apache.org/repos/asf/incubator-groovy/tree/58a6b738 Diff: http://git-wip-us.apache.org/repos/asf/incubator-groovy/diff/58a6b738 Branch: refs/heads/GROOVY_2_4_X Commit: 58a6b7383c72ce655a07f3f65be277f0fd31735a Parents: 415d9ff Author: Aseem Bansal Authored: Sat Jul 18 13:46:17 2015 +0530 Committer: pascalschumacher Committed: Sat Jul 18 10:57:48 2015 +0200 ---------------------------------------------------------------------- src/spec/doc/core-operators.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-groovy/blob/58a6b738/src/spec/doc/core-operators.adoc ---------------------------------------------------------------------- diff --git a/src/spec/doc/core-operators.adoc b/src/spec/doc/core-operators.adoc index 1900751..59b1af0 100644 --- a/src/spec/doc/core-operators.adoc +++ b/src/spec/doc/core-operators.adoc @@ -347,7 +347,7 @@ convert an existing method for the needs of the strategy pattern: include::{projectdir}/src/spec/test/OperatorsTest.groovy[tags=method_reference_strategy,indent=0] ---- <1> the `transform` method takes each element of the list and calls the `action` closure on them, returning a new list -<2> we define a function that takes a `Person` a returns a `String` +<2> we define a function that takes a `Person` and returns a `String` <3> we create a method pointer on that function <4> we create the list of elements we want to collect the descriptors <5> the method pointer can be used where a `Closure` was expected