Generate a correct python program to identify a particular character in a string.
Search for the letter 'e' in the given string
def char_in_string(char, string):
    for c in string:
        if c == char:
            return True
    return False