fixed article duplication typos (#16216)
This commit is contained in:
parent
84f2ad3068
commit
5c23ba7545
9 changed files with 9 additions and 9 deletions
|
|
@ -61,7 +61,7 @@ proc handleCR*(L: var TBaseLexer, pos: int): int
|
||||||
# position to continue the scanning from. `pos` must be the position
|
# position to continue the scanning from. `pos` must be the position
|
||||||
# of the CR.
|
# of the CR.
|
||||||
proc handleLF*(L: var TBaseLexer, pos: int): int
|
proc handleLF*(L: var TBaseLexer, pos: int): int
|
||||||
# Call this if you scanned over LF in the buffer; it returns the the
|
# Call this if you scanned over LF in the buffer; it returns the
|
||||||
# position to continue the scanning from. `pos` must be the position
|
# position to continue the scanning from. `pos` must be the position
|
||||||
# of the LF.
|
# of the LF.
|
||||||
# implementation
|
# implementation
|
||||||
|
|
|
||||||
|
|
@ -1948,7 +1948,7 @@ Nim supports these `calling conventions`:idx:\:
|
||||||
hardware stack.
|
hardware stack.
|
||||||
|
|
||||||
`inline`:idx:
|
`inline`:idx:
|
||||||
The inline convention means the the caller should not call the procedure,
|
The inline convention means the caller should not call the procedure,
|
||||||
but inline its code directly. Note that Nim does not inline, but leaves
|
but inline its code directly. Note that Nim does not inline, but leaves
|
||||||
this to the C compiler; it generates ``__inline`` procedures. This is
|
this to the C compiler; it generates ``__inline`` procedures. This is
|
||||||
only a hint for the compiler: it may completely ignore it and
|
only a hint for the compiler: it may completely ignore it and
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,7 @@ current matching point is at the end of the subject string, all of them fail,
|
||||||
since there is no character to match.
|
since there is no character to match.
|
||||||
|
|
||||||
For compatibility with Perl, ``\s`` does not match the VT character (code 11).
|
For compatibility with Perl, ``\s`` does not match the VT character (code 11).
|
||||||
This makes it different from the the POSIX "space" class. The ``\s`` characters
|
This makes it different from the POSIX "space" class. The ``\s`` characters
|
||||||
are HT (9), LF (10), FF (12), CR (13), and space (32).
|
are HT (9), LF (10), FF (12), CR (13), and space (32).
|
||||||
|
|
||||||
A "word" character is an underscore or any character less than 256 that is
|
A "word" character is an underscore or any character less than 256 that is
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ proc initRstGenerator*(g: var RstGenerator, target: OutputTarget,
|
||||||
## it helps to prettify the generated index if no title is found.
|
## it helps to prettify the generated index if no title is found.
|
||||||
##
|
##
|
||||||
## The ``RstParseOptions``, ``FindFileHandler`` and ``MsgHandler`` types
|
## The ``RstParseOptions``, ``FindFileHandler`` and ``MsgHandler`` types
|
||||||
## are defined in the the `packages/docutils/rst module <rst.html>`_.
|
## are defined in the `packages/docutils/rst module <rst.html>`_.
|
||||||
## ``options`` selects the behaviour of the rst parser.
|
## ``options`` selects the behaviour of the rst parser.
|
||||||
##
|
##
|
||||||
## ``findFile`` is a proc used by the rst ``include`` directive among others.
|
## ``findFile`` is a proc used by the rst ``include`` directive among others.
|
||||||
|
|
|
||||||
|
|
@ -1101,7 +1101,7 @@ macro mapLiterals*(constructor, op: untyped;
|
||||||
iterator items*[T](xs: iterator: T): T =
|
iterator items*[T](xs: iterator: T): T =
|
||||||
## iterates over each element yielded by a closure iterator. This may
|
## iterates over each element yielded by a closure iterator. This may
|
||||||
## not seem particularly useful on its own, but this allows closure
|
## not seem particularly useful on its own, but this allows closure
|
||||||
## iterators to be used by the the mapIt, filterIt, allIt, anyIt, etc.
|
## iterators to be used by the mapIt, filterIt, allIt, anyIt, etc.
|
||||||
## templates.
|
## templates.
|
||||||
for x in xs():
|
for x in xs():
|
||||||
yield x
|
yield x
|
||||||
|
|
|
||||||
|
|
@ -622,7 +622,7 @@ when not defined(js): # C
|
||||||
## Note: Not available for JS backend.
|
## Note: Not available for JS backend.
|
||||||
proc gamma*(x: float32): float32 {.importc: "tgammaf", header: "<math.h>".}
|
proc gamma*(x: float32): float32 {.importc: "tgammaf", header: "<math.h>".}
|
||||||
proc gamma*(x: float64): float64 {.importc: "tgamma", header: "<math.h>".}
|
proc gamma*(x: float64): float64 {.importc: "tgamma", header: "<math.h>".}
|
||||||
## Computes the the `gamma function <https://en.wikipedia.org/wiki/Gamma_function>`_ for ``x``.
|
## Computes the `gamma function <https://en.wikipedia.org/wiki/Gamma_function>`_ for ``x``.
|
||||||
##
|
##
|
||||||
## Note: Not available for JS backend.
|
## Note: Not available for JS backend.
|
||||||
##
|
##
|
||||||
|
|
|
||||||
|
|
@ -346,7 +346,7 @@ proc write*[T](s: Stream, x: T) =
|
||||||
writeData(s, unsafeAddr(x), sizeof(x))
|
writeData(s, unsafeAddr(x), sizeof(x))
|
||||||
|
|
||||||
proc write*(s: Stream, x: string) =
|
proc write*(s: Stream, x: string) =
|
||||||
## Writes the string `x` to the the stream `s`. No length field or
|
## Writes the string `x` to the stream `s`. No length field or
|
||||||
## terminating zero is written.
|
## terminating zero is written.
|
||||||
runnableExamples:
|
runnableExamples:
|
||||||
var strm = newStringStream("")
|
var strm = newStringStream("")
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ type
|
||||||
|
|
||||||
#/ Collision begin event function callback type.
|
#/ Collision begin event function callback type.
|
||||||
#/ Returning false from a begin callback causes the collision to be ignored until
|
#/ Returning false from a begin callback causes the collision to be ignored until
|
||||||
#/ the the separate callback is called when the objects stop colliding.
|
#/ the separate callback is called when the objects stop colliding.
|
||||||
TCollisionBeginFunc* = proc (arb: PArbiter; space: PSpace; data: pointer): bool{.
|
TCollisionBeginFunc* = proc (arb: PArbiter; space: PSpace; data: pointer): bool{.
|
||||||
cdecl.}
|
cdecl.}
|
||||||
#/ Collision pre-solve event function callback type.
|
#/ Collision pre-solve event function callback type.
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,4 @@ To build by hand and run the test for 35 minutes:
|
||||||
xxx do we still need tests/realtimeGC/cmain.c?
|
xxx do we still need tests/realtimeGC/cmain.c?
|
||||||
if so, tests/realtimeGC/cmain.c needs to updated and factorized with nmain.nim to avoid duplication (even if it's a C file)
|
if so, tests/realtimeGC/cmain.c needs to updated and factorized with nmain.nim to avoid duplication (even if it's a C file)
|
||||||
```
|
```
|
||||||
$ gcc -o tests/realtimeGC/cmain tests/realtimeGC/cmain.c -ldl
|
$ gcc -o tests/realtimeGC/cmain tests/realtimeGC/cmain.c -ldl
|
||||||
Loading…
Add table
Add a link
Reference in a new issue