## Analytic Function in a Domain D

If f(z) is analytic in a domain D and maps D onto a portion of a straight line, then show that f(z) is a constant function in D.

Anyone know how to solve this?