# Holomorphic function on the complement of an interval [duplicate]

Suppose $f : \mathbb{C} \to \mathbb{C}$ is continuous and its restriction to $\mathbb{C} \setminus [-1,1]$ is holomorphic. Is $f$ necessarily holomorphic?

-