How did the British capture Quebec?

a scount ungarded the walls