Fix the docs and fix the code. Buggy code introduced by me recently when changing the argument type to a `u32`.