From 8e85522d34ce09f49430e9e7ee37465c52c2cbd2 Mon Sep 17 00:00:00 2001 From: TheIronBorn Date: Sun, 4 Jun 2017 08:48:29 -0700 Subject: [PATCH] Update Maximum.swift --- Select Minimum Maximum/Maximum.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Select Minimum Maximum/Maximum.swift b/Select Minimum Maximum/Maximum.swift index 20c7d7c62..82b76fd73 100644 --- a/Select Minimum Maximum/Maximum.swift +++ b/Select Minimum Maximum/Maximum.swift @@ -2,7 +2,7 @@ Finds the maximum value in an array in O(n) time. */ -func maximum1(_ array: [T]) -> T? { +func maximum(_ array: [T]) -> T? { guard var maximum = array.first else { return nil } for element in array.dropFirst() {