why wrap your second example
That's hardly much more complex
Well, sorry to be snarky, but you couldn't have supported my point better.
Both you and the article author (where the code snippets are from) missed this critical detail during the first iteration. And not on some complex, esoteric problem but on one of the most basic language constructs.
I blame neither of you, I only ask that we please not discount the extra complexity.