aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/carten.spad.pamphlet
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/carten.spad.pamphlet')
-rw-r--r--src/algebra/carten.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/carten.spad.pamphlet b/src/algebra/carten.spad.pamphlet
index 6d7de173..ed391bf4 100644
--- a/src/algebra/carten.spad.pamphlet
+++ b/src/algebra/carten.spad.pamphlet
@@ -372,7 +372,7 @@ CartesianTensor(minix, dim, R): Exports == Implementation where
lengthRankOrElse n
elt(x) ==
- #x ~= 1 => error "Index error (the rank is not 0)"
+ not one?(#x) => error "Index error (the rank is not 0)"
get(x,0)
elt(x, i: I) ==
#x ~= dim => error "Index error (the rank is not 1)"