mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-04 21:14:48 +00:00
some progress on documentation building
This commit is contained in:
@@ -104,7 +104,7 @@ the use of an ``await`` macro which behaves similar to C#'s await. The
|
||||
following is a very simple chat server demonstrating Nimrod's new async
|
||||
capabilities.
|
||||
|
||||
.. code-block::nimrod
|
||||
.. code-block::nim
|
||||
import asyncnet, asyncdispatch
|
||||
|
||||
var clients: seq[PAsyncSocket] = @[]
|
||||
@@ -137,7 +137,7 @@ Syntactic sugar for anonymous procedures has also been introduced. It too has
|
||||
been implemented as a macro. The following shows some simple usage of the new
|
||||
syntax:
|
||||
|
||||
.. code-block::nimrod
|
||||
.. code-block::nim
|
||||
import future
|
||||
|
||||
var s = @[1, 2, 3, 4, 5]
|
||||
|
||||
Reference in New Issue
Block a user