Skip to content

Commit

Permalink
Fix minor typo in reference documentation for Kotlin annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Spanching authored and sbrannen committed Dec 21, 2024
1 parent c1236a3 commit 83ba7e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For example, `@Autowired lateinit var thing: Thing` implies that a bean
of type `Thing` must be registered in the application context, while `@Autowired lateinit var thing: Thing?`
does not raise an error if such a bean does not exist.

Following the same principle, `@Bean fun play(toy: Toy, car: Car?) = Baz(toy, Car)` implies
Following the same principle, `@Bean fun play(toy: Toy, car: Car?) = Baz(toy, car)` implies
that a bean of type `Toy` must be registered in the application context, while a bean of
type `Car` may or may not exist. The same behavior applies to autowired constructor parameters.

Expand Down

0 comments on commit 83ba7e6

Please sign in to comment.