l3x/learn-fp-go

Ineffective assignment in 06_curry/main.go

Opened this issue · 0 comments

This assignment of n to ret by the return statement is ineffective and confusing, the assignment in the deferred function will overwrite it. This line should simply be return with no arguments.