mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Remove return keyword from groovy examples in docs
Fixes gh-656
This commit is contained in:
parent
bc7c6aa40c
commit
383fbe9e71
@ -339,7 +339,7 @@ a file called `app.groovy`:
|
||||
|
||||
@RequestMapping("/")
|
||||
String home() {
|
||||
return "Hello World!"
|
||||
"Hello World!"
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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]
|
||||
----
|
||||
|
Loading…
Reference in New Issue
Block a user