The example with the size() operator is bad: using operator[] already changes the size of the object. The fix makes it clearer.