Duplicate code exemple

Remove duplicate code exemple
Merging #403 from 2.3
Merge pull request #404 from gregquat/2.4

Merging #403 from 2.3