Remove return keyword from groovy examples in docs

Fixes gh-656
This commit is contained in:
Dave Syer 2014-04-11 06:53:08 +01:00
parent bc7c6aa40c
commit 383fbe9e71
2 changed files with 3 additions and 3 deletions

View File

@ -339,7 +339,7 @@ a file called `app.groovy`:
@RequestMapping("/") @RequestMapping("/")
String home() { String home() {
return "Hello World!" "Hello World!"
} }
} }

View File

@ -87,7 +87,7 @@ Here is an example ``hello world'' web application written in Groovy:
@RequestMapping("/") @RequestMapping("/")
String home() { String home() {
return "Hello World!" "Hello World!"
} }
} }
@ -190,7 +190,7 @@ In this example, `tests.groovy` contains JUnit `@Test` methods or Spock `Specifi
classes. All the common framework annotations and static methods should be available to classes. All the common framework annotations and static methods should be available to
you without having to `import` them. you without having to `import` them.
Here is the `test.groovy` file that we used above: Here is the `test.groovy` file that we used above (with a JUnit test):
[source,groovy,indent=0] [source,groovy,indent=0]
---- ----