change some code-blocks to runnableExamples and correct some errors in docs (#15900)
* original docs are wrong * fix pathnorm * Update lib/pure/pathnorm.nim Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
This commit is contained in:
parent
63c559e781
commit
ef2677f5f3
4 changed files with 51 additions and 57 deletions
|
|
@ -262,11 +262,8 @@ func contains*(methods: set[HttpMethod], x: string): bool =
|
|||
|
||||
func `$`*(code: HttpCode): string =
|
||||
## Converts the specified ``HttpCode`` into a HTTP status.
|
||||
##
|
||||
## For example:
|
||||
##
|
||||
## .. code-block:: nim
|
||||
## doAssert($Http404 == "404 Not Found")
|
||||
runnableExamples:
|
||||
doAssert($Http404 == "404 Not Found")
|
||||
case code.int
|
||||
of 100: "100 Continue"
|
||||
of 101: "101 Switching Protocols"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue