From a4edbaf506e66675bb94d043393047c6d289fefd Mon Sep 17 00:00:00 2001 From: Leonardo Gonfiantini Date: Sat, 27 May 2023 12:22:17 +0200 Subject: [PATCH] Update reverse-array.go --- algorithms/Go/arrays/reverse-array.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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