Rename iterate's step to length

This commit is contained in:
Nigel Tao committed 2018-05-05 08:25:23 +10:00
1 parent 72bf2e16a1
commit 1702c1e303
8 files changed
+28 -30

No files matched your search

+1 -1
View File
@@ -304,7 +304,7 @@ func (q *checker) bcheckStatement(n *a.Node) error {
q.facts = q.facts[:0]
for _, o := range n.Variables() {
v := o.Var()
q.facts = append(q.facts, makeSliceLengthEqEq(v.Name(), v.XType(), n.Step()))
q.facts = append(q.facts, makeSliceLengthEqEq(v.Name(), v.XType(), n.Length()))
}
for _, o := range n.Body() {
if err := q.bcheckStatement(o); err != nil {