Fixed pseudocode in documentation; fixes #9080