From http://en.wikipedia.org/wiki/Repeat_sign
When a repeat calls for a different ending, number brackets above the bars indicate which to played the first time (1), which to play the second time (2), etc. These are called "first-time bars" and "second-time bars," or "first and second endings."
Is there a case when you can only use one of them?