Construct a Python function to reverse the contents of a given array in-place.
def reverse_in_place(arr):
    start = 0
    end = len(arr)-1
    while start < end:
        arr[start], arr[end] = arr[end], arr[start]
        start += 1
        end -= 1