I carry a spare tube and a patch kit.
On my first flat, I'll use the spare tube.
While riding, I'll patch the tube I just flatted in case I get a second flat.
Just kidding, I'll use the patch kit on my second flat, but I haven't flatted twice in a ride yet.