Skip to content

Commit 2df0a9a

Browse files
committed
Rename numberOfCards to count
1 parent 51a1db6 commit 2df0a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Dealer/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ import ArgumentParser
1818

1919
struct Deal: ParsableCommand {
2020
@Argument(help: "The number of cards to deal.")
21-
var numberOfCards: Int = 10
21+
var count: UInt = 10
2222

2323
mutating func run() throws {
2424
var deck = Deck.standard52CardDeck()
2525
deck.shuffle()
2626

27-
for _ in 0..<numberOfCards {
27+
for _ in 0..<count {
2828
guard let card = deck.deal() else {
2929
print("No More Cards!")
3030
break

0 commit comments

Comments
 (0)