Skip to content

Commit bc324ac

Browse files
committed
fix example
1 parent 2c5856f commit bc324ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Proposals/0023-progress-manager.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ extension ProgressManager.Properties {
396396
}
397397

398398
static func finalSummary(_ parentSummary: [String?], _ selfSummary: [String?]) -> [String?] {
399-
parentSummary
399+
parentSummary + selfSummary
400400
}
401401
}
402402
}
@@ -423,7 +423,7 @@ func doSomething(subprogress: consuming Subprogress? = nil) async {
423423
}
424424

425425
let filenames = manager.summary(of: ProgressManager.Properties.Filename.self) // get summary of filename in subtree
426-
print(filenames) // ["Capybara.jpg", "Snail.jpg"]
426+
print(filenames) // get ["Capybara.jpg", "Snail.jpg"] since we defined `finalSummary` to include filename cumulatively
427427
```
428428

429429
### Interoperability with Existing `Progress`

0 commit comments

Comments
 (0)