> 4.2.2 Idiomatic err variable capture.<p>I'm trying to reproduce that in this play: <a href="https://go.dev/play/p/3wkkfN3bMfH" rel="nofollow">https://go.dev/play/p/3wkkfN3bMfH</a><p>Based on the study, I expect that the final print would print `err final value err:bar, 2`, but it's `<nil>`.
And it is because it uses the shorthand variable declaration, which will make it to be in the scope of the go function closure.<p>Am I missing something?