mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-10-13 17:49:25 +00:00
Updated for Swift 3
Process enum has been replaced with CommandLine in Swift 3. Changed main.swift to reflect this.
This commit is contained in:
1 parent
97ba169a35
commit
9c63a7732a
1 file changed
+2
-2
+2
-2
@@ -14,8 +14,8 @@ let items = [
|
||||
let app = GildedRose(items: items);
|
||||
|
||||
var days = 2;
|
||||
if (Process.argc > 1) {
|
||||
days = Int(Process.arguments[1])! + 1
|
||||
if (CommandLine.argc > 1) {
|
||||
days = Int(CommandLine.arguments[1])! + 1
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user