I'm pretty sure that legend comes from a speech John Kennedy gave in Berlin. The intended meaning was that the USA would always defend West Berlin against Soviet invasion. So, he wanted to say "I too am a Berliner." But, he mispronounced a word and said "I too am a (jelly) doughnut."