Rewrite the existing code to edit the contents of an existing Python dictionary.
language_dict = {
    'English': 'Hello', 
    'Spanish': 'Hola', 
    'Japanese': 'Konnichiwa'
    }
language_dict = {
    'English': 'Hi', 
    'Spanish': 'Hola', 
    'Japanese': 'Konnichiwa'
    }
    
def edit_dict(dictionary, key, value):
    dictionary[key] = value