Polishing

Closes gh-31522
This commit is contained in:
Johnny Lim
2023-10-30 22:04:29 +09:00
committed by Sam Brannen
parent 8a2acbeac1
commit 2b750926c3
20 changed files with 32 additions and 30 deletions

View File

@@ -30,7 +30,7 @@ import org.springframework.web.server.ServerWebExchange;
* from asynchronous return values, and to response rendering.
* <li>Implemented by a {@link HandlerAdapter} in order to handle exceptions that
* occur before a request is mapped to a handler, or for unhandled errors from a
* handler..
* handler.
* </ul>
*
* @author Rossen Stoyanchev

View File

@@ -628,7 +628,7 @@ class CoRouterFunctionDsl internal constructor (private val init: (CoRouterFunct
*/
fun context(provider: suspend (ServerRequest) -> CoroutineContext) {
if (this.contextProvider != null) {
throw IllegalStateException("The Coroutine context provider should be defined not more than once")
throw IllegalStateException("The Coroutine context provider should not be defined more than once")
}
this.contextProvider = provider
}