aboutsummaryrefslogtreecommitdiff
path: root/src/stack.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/stack.nim')
-rw-r--r--src/stack.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stack.nim b/src/stack.nim
index eeef5cd..9ba3e24 100644
--- a/src/stack.nim
+++ b/src/stack.nim
@@ -73,6 +73,7 @@ func Transfert*(toss: var Stack, soss: var Stack, n: int) =
soss.height = 0
func Discard*(s: var Stack, n: int) =
+ ## Implements a discard mechanism intended for use with the '}'(aka end) stackstack command
s.height -= n
if s.height < 0:
s.height = 0