diff --git a/Array/RotateArray.swift b/Array/RotateArray.swift index da4b3718..9121325b 100644 --- a/Array/RotateArray.swift +++ b/Array/RotateArray.swift @@ -33,7 +33,7 @@ class RotateArray { } } - private func _swap(inout nums: [Int], _ p: Int, _ q: Int) { + private func _swap(inout nums: Array, _ p: Int, _ q: Int) { var temp = nums[p] nums[p] = nums[q] nums[q] = temp