correct comment for document variable (fixes #4097)