doc: remove space between variable and post increment in example code