Skip to content

Commit 59e461a

Browse files
Sensational-Codemartincostello
authored andcommitted
Add missing semicolons to fallback policy example
1 parent 8f30094 commit 59e461a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,13 +506,13 @@ For more information on the Circuit Breaker pattern in general see:
506506
Policy<UserAvatar>
507507
.Handle<FooException>()
508508
.OrResult(null)
509-
.Fallback<UserAvatar>(UserAvatar.Blank)
509+
.Fallback<UserAvatar>(UserAvatar.Blank);
510510

511511
// Specify a func to provide a substitute value, if execution faults.
512512
Policy<UserAvatar>
513513
.Handle<FooException>()
514514
.OrResult(null)
515-
.Fallback<UserAvatar>(() => UserAvatar.GetRandomAvatar()) // where: public UserAvatar GetRandomAvatar() { ... }
515+
.Fallback<UserAvatar>(() => UserAvatar.GetRandomAvatar()); // where: public UserAvatar GetRandomAvatar() { ... }
516516
517517
// Specify a substitute value or func, calling an action (eg for logging) if the fallback is invoked.
518518
Policy<UserAvatar>

0 commit comments

Comments
 (0)