fix examples for with_nested
Merge pull request #4203 from candeira/with_nested

fix documentation examples for with_nested