Skip to content

Commit ed112f2

Browse files
committed
[README] Update example
1 parent b82c0ed commit ed112f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ count is 1.
6464

6565
```swift
6666
command(
67-
Option("name", `default`: "world")
68-
Option("count", `default`: 1, description: "The number of times to print.")
69-
) { name:String, count:Int
70-
for _ in count {
67+
Option("name", "world"),
68+
Option("count", 1, description: "The number of times to print.")
69+
) { name, count
70+
for _ in (0..<count) {
7171
print("Hello \(name)")
7272
}
7373
}

0 commit comments

Comments
 (0)