1. He made a mistake at work and his boss punished him to set an example.2. Apple sued Samsung to make an example out of Samsung that stealing other people's idea is not cool.
 set an example make an example out of somebody
老師 (讓小朋友出校車後): 別嬉戲，別跟陌生人說話。 (請填空)
Teacher (after letting kids out of the school bus on a field trip): No hoseplay. Don't talk to strangers.