(maint) Correct documentation of each function

The documentation of the each function used deprecated syntax.