aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/stream.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/stream.spad.pamphlet')
-rw-r--r--src/algebra/stream.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/stream.spad.pamphlet b/src/algebra/stream.spad.pamphlet
index 3d5159ea..a51a1c51 100644
--- a/src/algebra/stream.spad.pamphlet
+++ b/src/algebra/stream.spad.pamphlet
@@ -1091,7 +1091,7 @@ Stream(S): Exports == Implementation where
setrestt!(rst x,n-1,y)
setrest!(x,n,y) ==
- n < 0 or empty? x => error "setrest!: no such rest"
+ negative? n or empty? x => error "setrest!: no such rest"
x := expand!(x,n+1)
setrestt!(x,n,y)