Skip to content

Commit da25afd

Browse files
committed
Typo fix
1 parent a37f131 commit da25afd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: README.adoc

+6-5
Original file line numberDiff line numberDiff line change
@@ -320,18 +320,19 @@ public void runLockedWithMyCustomLock() {
320320
This is the default key generator the advice uses. If you wish to use your own, simply write your own and define it as a `@Bean`.
321321

322322
The default key generator has access to the currently executing context, meaning you can access your fields and methods from SpEL.
323-
It uses the `https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/core/DefaultParameterNameDiscoverer.html[DefaultParameterNameDiscoverer]` to discover parameter names, so you
324-
can access your parameters in several different ways:
323+
It uses the `https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/core/DefaultParameterNameDiscoverer.html[DefaultParameterNameDiscoverer]` to discover parameter names, so you can access your parameters in several different ways:
325324

326325
1. using `p#` syntax, where `#` is the position of the parameter, for an example: `p0` for the first parameter
327326
2. using `a#` syntax, where `#` is the position of the parameter, for an example: `a2` for the third parameter
328327
3. using the parameter name, for an example, `#message` -- *REQUIRES `-parameters` compiler flag*
329328

330-
A special variable named `executionPath` is used to define the method called. This is the default `expression` used to describe the annotated method.
329+
A special variable named `executionPath` is used to define the method called.
330+
This is the default `expression` used to describe the annotated method.
331331

332-
All validated expressions that result in an `Iterable` or an array will be converted to `List<String>` and all other values will be wrapped with `Collections.toSingletonList`.
332+
All validated expressions that result in an `Iterable` or an array will be converted to `List<String>` and all other values will be wrapped with `Collections.singletonList`.
333333
Elements of `Iterable` or array will also be converted to Strings using the
334-
`https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/core/convert/ConversionService.html[ConversionService]`. Custom converters can be registered.
334+
`https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/core/convert/ConversionService.html[ConversionService]`.
335+
Custom converters can be registered.
335336
More about Spring conversion can be found https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#core-convert[here].
336337

337338
For more examples, take a look at `com.github.alturkovic.lock.key.SpelKeyGeneratorTest`.

0 commit comments

Comments
 (0)