fix code-block which causes missing docs
This commit is contained in:
parent
0ef830577b
commit
6c2f041368
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@
|
|||
## The following is a simple example of two different ways to use channels:
|
||||
## blocking and non-blocking.
|
||||
##
|
||||
## .. code-block :: Nim
|
||||
## .. code-block:: Nim
|
||||
## # Be sure to compile with --threads:on.
|
||||
## # The channels and threads modules are part of system and should not be
|
||||
## # imported.
|
||||
|
|
@ -112,7 +112,7 @@
|
|||
## using e.g. `system.allocShared0` and pass these pointers through thread
|
||||
## arguments:
|
||||
##
|
||||
## .. code-block :: Nim
|
||||
## .. code-block:: Nim
|
||||
## proc worker(channel: ptr Channel[string]) =
|
||||
## let greeting = channel[].recv()
|
||||
## echo greeting
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue