diff options
author | Araq <rumpf_a@web.de> | 2011-03-23 01:09:52 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-03-23 01:09:52 +0100 |
commit | 5b789f2da8e57ea2adf0c088f5e41fd7a71fe89b (patch) | |
tree | 81f2f23d48d56ef7b106d24982231d99809a6def /rod/rst.nim | |
parent | 8d734244b14e09c97267432468ac20fcf8ff82eb (diff) | |
download | Nim-5b789f2da8e57ea2adf0c088f5e41fd7a71fe89b.tar.gz |
bugfixes; field discriminant checks; linearScanEnd, unroll, shallow pragmas
Diffstat (limited to 'rod/rst.nim')
-rwxr-xr-x | rod/rst.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rod/rst.nim b/rod/rst.nim index dace43a44..85b0cf54e 100755 --- a/rod/rst.nim +++ b/rod/rst.nim @@ -432,7 +432,7 @@ proc matchesHyperlink(h: PRstNode, filename: string): bool = result = matchesHyperlink(h.sons[0], filename) elif h.kind == rnHyperlink: var s = addNodes(h.sons[1]) - if startsWith(s, filename) and (s[len(filename) + 0] == '#'): result = true + if startsWith(s, filename) and (s[len(filename)] == '#'): result = true else: result = false else: result = false |