Skip to content

Commit 4f0f94d

Browse files
committed
fix the example in the documentation index page
1 parent 859f836 commit 4f0f94d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/modules/ROOT/pages/index.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ It also provides a programmatic API to build reusable guards:
2222
[source,java]
2323
----
2424
public class MyService {
25-
private static final FaultTolerance<String> guard = FaultTolerance.<String>create()
25+
private static final TypedGuard<String> GUARD = TypedGuard.create(String.class)
2626
.withFallback().handler(() -> "fallback").done() // <1>
2727
.build();
2828
2929
public String hello() throws Exception {
30-
return guard.call(() -> externalService.hello()); // <2>
30+
return GUARD.call(() -> externalService.hello()); // <2>
3131
}
3232
}
3333
----

0 commit comments

Comments
 (0)