First, congratulations on very clear documentation! A pleasure to read.
Next, the example on the page:
... has a minor problem.
The text refers to "... there's the ledPin variable which the functions use ..." however the code actually uses a variable "pin" not "ledPin".