typo fixes in parse.scm
authorAndy Wingo <wingo@pobox.com>
Fri, 8 Feb 2013 17:52:36 +0000 (18:52 +0100)
committerAndy Wingo <wingo@pobox.com>
Fri, 8 Feb 2013 17:52:36 +0000 (18:52 +0100)
* figl/parse.scm (string->directions, string->transfer-types): Fix what
  appear to be a couple of typos.  Please revert if this is not
  correct.

figl/parse.scm

index a31836f..132615a 100644 (file)
                              (expansion valid-directions))
   (let ((direction (string->symbol str)))
     (cond
-     ((and (eq? direction '*) expansion)
+     ((eq? direction '*)
       expansion)
-     ((memq direction valid-directions)
+     ((memq direction expansion)
       (list direction))
      (else
       (error "unknown direction" str)))))
                                  (expansion valid-transfer-types))
   (let ((trans (string->symbol str)))
     (cond
-     ((and (eq? trans '*) expansion)
+     ((eq? trans '*)
       expansion)
-     ((memq trans valid-transfer-types)
+     ((memq trans expansion)
       (list trans))
      (else
       (error "unknown transfer-type" str)))))