fix doc example for all(). closes #6143