From 383fbe9e71ec957e7502b551624dfeb3a5d19399 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 11 Apr 2014 06:53:08 +0100 Subject: [PATCH] Remove return keyword from groovy examples in docs Fixes gh-656 --- spring-boot-docs/src/main/asciidoc/getting-started.adoc | 2 +- spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/getting-started.adoc b/spring-boot-docs/src/main/asciidoc/getting-started.adoc index 7afada0927..6189fdc251 100644 --- a/spring-boot-docs/src/main/asciidoc/getting-started.adoc +++ b/spring-boot-docs/src/main/asciidoc/getting-started.adoc @@ -339,7 +339,7 @@ a file called `app.groovy`: @RequestMapping("/") String home() { - return "Hello World!" + "Hello World!" } } diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc index a531ab1d19..94e46d1f29 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-cli.adoc @@ -87,7 +87,7 @@ Here is an example ``hello world'' web application written in Groovy: @RequestMapping("/") 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 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] ----