summaryrefslogtreecommitdiff
path: root/src/syntax/node.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-02-04 00:38:30 +0100
committerLaurenz <laurmaedje@gmail.com>2021-02-04 00:38:30 +0100
commit8de1f8b770b811084f701b9a6b9ac78ce6fa04da (patch)
tree46717b98a9536b15d613a88abdc94f0c968b5439 /src/syntax/node.rs
parentd86a5e8a1f469dd79abf3137dba77a71fae2a774 (diff)
Fix counting bug ✅
Diffstat (limited to 'src/syntax/node.rs')
-rw-r--r--src/syntax/node.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/syntax/node.rs b/src/syntax/node.rs
index 7b6aa728..b4866068 100644
--- a/src/syntax/node.rs
+++ b/src/syntax/node.rs
@@ -151,8 +151,9 @@ impl Pretty for NodeRaw {
// More backticks may be required if there are lots of consecutive
// backticks in the lines.
- let mut count = 0;
+ let mut count;
for line in &self.lines {
+ count = 0;
for c in line.chars() {
if c == '`' {
count += 1;