Merge pull request #3352 from tmm1/fix-doc-typos
Fix some minor documentation typos
This commit is contained in:
commit
08f9baeddc
4 changed files with 9 additions and 5 deletions
|
|
@ -122,7 +122,7 @@ String handling
|
||||||
This module contains various string matchers for email addresses, etc.
|
This module contains various string matchers for email addresses, etc.
|
||||||
|
|
||||||
* `subexes <subexes.html>`_
|
* `subexes <subexes.html>`_
|
||||||
This module implements advanted string substitution operations.
|
This module implements advanced string substitution operations.
|
||||||
|
|
||||||
|
|
||||||
Generic Operating System Services
|
Generic Operating System Services
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
Substitution Expressions (subex)
|
Substitution Expressions (subex)
|
||||||
================================
|
================================
|
||||||
|
|
||||||
A *subex* (*Substitution Expression*) represents an advanted string
|
A *subex* (*Substitution Expression*) represents an advanced string
|
||||||
substitution. In contrast to a `regex`:idx: which deals with string analysis, a
|
substitution. In contrast to a `regex`:idx: which deals with string analysis, a
|
||||||
*subex* deals with string synthesis.
|
*subex* deals with string synthesis.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ import strutils
|
||||||
##
|
##
|
||||||
## Quick start example:
|
## Quick start example:
|
||||||
##
|
##
|
||||||
|
## .. code-block:: nim
|
||||||
|
##
|
||||||
## # Create a matrix which first rotates, then scales and at last translates
|
## # Create a matrix which first rotates, then scales and at last translates
|
||||||
##
|
##
|
||||||
## var m:Matrix2d=rotate(DEG90) & scale(2.0) & move(100.0,200.0)
|
## var m:Matrix2d=rotate(DEG90) & scale(2.0) & move(100.0,200.0)
|
||||||
|
|
@ -93,11 +95,11 @@ let
|
||||||
IDMATRIX*:Matrix2d=matrix2d(1.0,0.0,0.0,1.0,0.0,0.0)
|
IDMATRIX*:Matrix2d=matrix2d(1.0,0.0,0.0,1.0,0.0,0.0)
|
||||||
## Quick access to an identity matrix
|
## Quick access to an identity matrix
|
||||||
ORIGO*:Point2d=point2d(0.0,0.0)
|
ORIGO*:Point2d=point2d(0.0,0.0)
|
||||||
## Quick acces to point (0,0)
|
## Quick access to point (0,0)
|
||||||
XAXIS*:Vector2d=vector2d(1.0,0.0)
|
XAXIS*:Vector2d=vector2d(1.0,0.0)
|
||||||
## Quick acces to an 2d x-axis unit vector
|
## Quick access to an 2d x-axis unit vector
|
||||||
YAXIS*:Vector2d=vector2d(0.0,1.0)
|
YAXIS*:Vector2d=vector2d(0.0,1.0)
|
||||||
## Quick acces to an 2d y-axis unit vector
|
## Quick access to an 2d y-axis unit vector
|
||||||
|
|
||||||
|
|
||||||
# ***************************************
|
# ***************************************
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@ import times
|
||||||
##
|
##
|
||||||
## Quick start example:
|
## Quick start example:
|
||||||
##
|
##
|
||||||
|
## .. code-block:: nim
|
||||||
|
##
|
||||||
## # Create a matrix which first rotates, then scales and at last translates
|
## # Create a matrix which first rotates, then scales and at last translates
|
||||||
##
|
##
|
||||||
## var m:Matrix3d=rotate(PI,vector3d(1,1,2.5)) & scale(2.0) & move(100.0,200.0,300.0)
|
## var m:Matrix3d=rotate(PI,vector3d(1,1,2.5)) & scale(2.0) & move(100.0,200.0,300.0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue