doctest syntax fix