Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-83

Syntax error in quickStart.html page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-beta-1
    • 1.0-beta-5
    • None
    • None
    • Mozilla Firebird

    Description

      Looking at the following Quickstart example there appears to be an error:

      groovy> closure = { param | println("hello ${param}") }
      groovy> closure.call("world!")
      hello world!
      groovy> closure =

      { greeting, name | println(greeting + param) }
      groovy> closure.call("hello ", "world!")
      hello world!

      This line:
      groovy> closure = { greeting, name | println(greeting + param) }

      Should read:
      groovy> closure =

      { greeting, name | println(greeting + name) }

      Attachments

        Activity

          People

            Unassigned Unassigned
            denovich Mark Denovich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: