Use `size` over `length` in example code.

The guide suggests preferring the use of `size` over `length`, but one of the code snippets doesn't follow this rule.
Merge pull request #252 from fuadsaud/patch-1

Use `size` over `length` in example code.