Fix typo

Fixes typo reported in #588. For consistency with other examples, change inner scope name to singular `item`.