In this example, from the wire library, the void loop is left empty.
Have you compiled the code?
Does it work?