fixed a couple fo copy/paste errors

A couple fo bits of documentation were wrong due to copy/paste erros, fixed them.

Refs #7865
Fixed compiler warning

stopped a gcc compiler warning complaing about an unused variable

Refs #7865