Fixes #2866 -- inconsistent variable naming in docs