use range instead of () in example

address #379