Skip to content

Commit

Permalink
misc cleanups (nim-lang#16383)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour authored and mildred committed Jan 11, 2021
1 parent a09a554 commit 04e4657
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions compiler/docgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,21 @@
# distribution, for details about the copyright.
#

# This is the documentation generator. It is currently pretty simple: No
# semantic checking is done for the code. Cross-references are generated
# This is the documentation generator. Cross-references are generated
# by knowing how the anchors are going to be named.

import
ast, strutils, strtabs, options, msgs, os, ropes, idents,
wordrecg, syntaxes, renderer, lexer, packages/docutils/rstast,
packages/docutils/rst, packages/docutils/rstgen,
json, xmltree, cgi, trees, types,
json, xmltree, trees, types,
typesrenderer, astalgo, lineinfos, intsets,
pathutils, trees, tables, nimpaths, renderverbatim, osproc

from uri import encodeUrl
from std/private/globs import nativeToUnixPath


const
exportSection = skField
docCmdSkip = "skip"
Expand Down
2 changes: 1 addition & 1 deletion compiler/modulegraphs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import ast, intsets, tables, options, lineinfos, hashes, idents,
incremental, btrees, md5

import ic / packed_ast
# import ic / packed_ast

type
SigHash* = distinct MD5Digest
Expand Down
6 changes: 3 additions & 3 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -873,9 +873,9 @@ else:
template `<//>`*(t: untyped): untyped = t

template disarm*(x: typed) =
## Useful for ``disarming`` dangling pointers explicitly for the
## --newruntime. Regardless of whether --newruntime is used or not
## this sets the pointer or callback ``x`` to ``nil``. This is an
## Useful for `disarming` dangling pointers explicitly for `--newruntime`.
## Regardless of whether `--newruntime` is used or not
## this sets the pointer or callback `x` to `nil`. This is an
## experimental API!
x = nil

Expand Down

0 comments on commit 04e4657

Please sign in to comment.