diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-01-23 02:06:28 -0800 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-01-23 11:06:28 +0100 |
commit | b8a436af93a0f05c47634b7dfa1aff120ce6efb8 (patch) | |
tree | 1caf3955c99403b28acd1537ebf09e4f1e07780a /compiler | |
parent | b462baed65589365df85798f15223b3b38557f9c (diff) | |
download | Nim-b8a436af93a0f05c47634b7dfa1aff120ce6efb8.tar.gz |
kochdocs: use a glob instead of hardcoded list; generate docs for compiler/; bugfixes (#13221)
* kochdocs: use a glob instead of hardcoded list; generate docs for compiler/; bugfixes * fixup after #13212 isRelativeTo got merged
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/astalgo.nim | 4 | ||||
-rw-r--r-- | compiler/btrees.nim | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index f228de1ca..fd95b3780 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -218,12 +218,12 @@ proc sameIgnoreBacktickGensymInfo(a, b: string): bool = proc getNamedParamFromList*(list: PNode, ident: PIdent): PSym = ## Named parameters are special because a named parameter can be - ## gensym'ed and then they have '`<number>' suffix that we need to + ## gensym'ed and then they have '\`<number>' suffix that we need to ## ignore, see compiler / evaltempl.nim, snippet: ## ##..code-block:: nim ## - ## result.add newIdentNode(getIdent(c.ic, x.name.s & "`gensym" & $x.id), + ## result.add newIdentNode(getIdent(c.ic, x.name.s & "\`gensym" & $x.id), ## if c.instLines: actual.info else: templ.info) for i in 1..<list.len: let it = list[i].sym diff --git a/compiler/btrees.nim b/compiler/btrees.nim index 4f9031a6b..65edc54f3 100644 --- a/compiler/btrees.nim +++ b/compiler/btrees.nim @@ -191,7 +191,7 @@ when isMainModule: st.add("www.yahoo.com", "216.109.118.65") assert st.getOrDefault("www.cs.princeton.edu") == "abc" - assert st.getOrDefault("www.harvardsucks.com") == nil + assert st.getOrDefault("www.harvardsucks.com") == "" assert st.getOrDefault("www.simpsons.com") == "209.052.165.60" assert st.getOrDefault("www.apple.com") == "17.112.152.32" |