This docstring is a bit confusing, there is no parameter `i` there at all.