My definition of the theorem is stated in this section of the Wikipedia article.
My question is why point $a$ must be within the interior of $D$, and can't it also be in $U$ (where I mean the part of $U$ but not $D$ the domain where $f$ is analytic)(I think $D$ is smaller since $D$ is any simple closed contour lying entirely within $U$)?