• Ben Lynn's avatar
    regexp: reject bare ? · eb56a79e
    Ben Lynn authored
    Minor cleanup:
      - removed a duplicate test case
      - added a function to remove repeated code
      - for consistency, replaced "return nil" with a panic at an
        unreachable point
    
    Fixes #1428.
    
    R=golang-dev, r, rsc
    CC=golang-dev
    https://golang.org/cl/4057042
    eb56a79e
all_test.go 10.1 KB