Skip to content

Commit 516d842

Browse files
christophlingggregturn
authored andcommitted
#452 - Fix typo in the reference documentation
1 parent 59688e3 commit 516d842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/asciidoc/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Link link = linkTo(methodOn(PersonController.class).show(2L)).withSelfRel();
180180
assertThat(link.getHref(), is("/people/2")));
181181
----
182182

183-
`methodOn(…)` creates a proxy of the controller class that is recording the method invocation and exposed it in a proxy created for the return type of the method. This allows the fluent expression of the method we want to obtain the mapping for. However there are a few constraints on the methods that can be obtained using this technique:
183+
`methodOn(…)` creates a proxy of the controller class that is recording the method invocation and exposes it in a proxy created for the return type of the method. This allows the fluent expression of the method we want to obtain the mapping for. However there are a few constraints on the methods that can be obtained using this technique:
184184

185185
1. The return type has to be capable of proxying as we need to expose the method invocation on it.
186186
2. The parameters handed into the methods are generally neglected, except the ones referred to through `@PathVariable` as they make up the URI.

0 commit comments

Comments
 (0)