Fix buffer

A small fix in offset computation or some example were not working in:
https://github.com/rougier/loops-tutorial

(Tutorial with Cyrille in Paris)

% formatting is both faster and more compact.