* further progress on rst roles & dir-s (fix #17646) * fix documents according to the messages * fix bug 17 from #17340
This commit is contained in:
parent
4d3f9d3536
commit
42687457b0
12 changed files with 129 additions and 51 deletions
|
|
@ -23,14 +23,14 @@
|
|||
## Encoding data
|
||||
## -------------
|
||||
##
|
||||
## .. code-block::nim
|
||||
## .. code-block:: Nim
|
||||
## import std/base64
|
||||
## let encoded = encode("Hello World")
|
||||
## assert encoded == "SGVsbG8gV29ybGQ="
|
||||
##
|
||||
## Apart from strings you can also encode lists of integers or characters:
|
||||
##
|
||||
## .. code-block::nim
|
||||
## .. code-block:: Nim
|
||||
## import std/base64
|
||||
## let encodedInts = encode([1,2,3])
|
||||
## assert encodedInts == "AQID"
|
||||
|
|
@ -41,7 +41,7 @@
|
|||
## Decoding data
|
||||
## -------------
|
||||
##
|
||||
## .. code-block::nim
|
||||
## .. code-block:: Nim
|
||||
## import std/base64
|
||||
## let decoded = decode("SGVsbG8gV29ybGQ=")
|
||||
## assert decoded == "Hello World"
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
## URL Safe Base64
|
||||
## ---------------
|
||||
##
|
||||
## .. code-block::nim
|
||||
## .. code-block:: Nim
|
||||
## import std/base64
|
||||
## doAssert encode("c\xf7>", safe = true) == "Y_c-"
|
||||
## doAssert encode("c\xf7>", safe = false) == "Y/c+"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue