fixed logic
This commit is contained in:
parent
59213e8145
commit
2e34f1b6c5
@ -15,9 +15,9 @@ def brackets(text):
|
|||||||
if slash == 2:
|
if slash == 2:
|
||||||
break
|
break
|
||||||
continue
|
continue
|
||||||
if i == "{":
|
elif i == "{":
|
||||||
res += 1
|
res += 1
|
||||||
if i == "}":
|
elif i == "}":
|
||||||
res -= 1
|
res -= 1
|
||||||
slash = 0
|
slash = 0
|
||||||
return res
|
return res
|
||||||
|
Loading…
Reference in New Issue
Block a user