Updated loop documentation with explicit example of hash usage