Better HN
topnewbestaskshowjobs
Log inSign up

flip_rect_red

1 karma · joined Dec 6, 2017 (8y ago) · 1 submissions

Submissions

comment 8y ago · link · parent

it appeared to be a typo, and as you suggest the compiler caught it

    var foo *Foo
    var err error
    if foo, err = getFoo(); err != nil {
        return nil, err
    } 
    //foo is usable now