diff --git a/algorithms/Go/arrays/reverse-array.go b/algorithms/Go/arrays/reverse-array.go index 2d44ba21..dd85705a 100644 --- a/algorithms/Go/arrays/reverse-array.go +++ b/algorithms/Go/arrays/reverse-array.go @@ -6,7 +6,7 @@ package arrays import ("fmt") -func ReverseArray(arr int[]) { +func ReverseArray(arr []int) { // get the length of the array n := len(arr) // iterate over half of the array and swap corresponding elements