mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-22 07:15:22 +00:00
documentation style tweaks (#10790)
* exports are the least important field in the docs: they are put in the last place (at the bottom) * indent text after proc/type declaration for an easier navigation (noticeable difference between declarations and examples) * quickfix invalid style in `asynchttpserver`
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
## allowing users to connect directly to this server.
|
||||
##
|
||||
##
|
||||
## Examples
|
||||
## --------
|
||||
## Basic usage
|
||||
## -----------
|
||||
##
|
||||
## This example will create an HTTP server on port 8080. The server will
|
||||
## respond to all requests with a ``200 OK`` response code and "Hello World"
|
||||
@@ -85,8 +85,8 @@ proc respond*(req: Request, code: HttpCode, content: string,
|
||||
##
|
||||
## This procedure will **not** close the client socket.
|
||||
##
|
||||
## Examples
|
||||
## --------
|
||||
## Example:
|
||||
##
|
||||
## .. code-block::nim
|
||||
## import json
|
||||
## proc handler(req: Request) {.async.} =
|
||||
|
||||
Reference in New Issue
Block a user