Minor fix to make pickle example more accurate.
Merge pull request #1863 from jjh42/doc-pickle-fix

Minor fix to make pickle example more accurate.