From bdf2cf33a5d326358574c1e7df8413c0ff81f22f Mon Sep 17 00:00:00 2001 From: DCWCU13 <86099944+DCWCU13@users.noreply.github.com> Date: Mon, 28 Jun 2021 14:28:05 +0700 Subject: [PATCH] Error in Line 7 Line 7 needs to be changed to: var ability = [""] Codecademy has it wrong in their system as well. --- 9-classes/pokedex/Pokedex.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-classes/pokedex/Pokedex.swift b/9-classes/pokedex/Pokedex.swift index 9d7ad17..68c67a5 100644 --- a/9-classes/pokedex/Pokedex.swift +++ b/9-classes/pokedex/Pokedex.swift @@ -4,7 +4,7 @@ class Pokemon { var num = 0 var name = "" var type = [""] - var ability: [""] + var ability = [""] init(num: Int, name: String, type: [String], ability: [String]) { self.num = num