Skip to content

Commit dfb36eb

Browse files
marcel-diasadriancole
authored andcommitted
Fix readme method name to produce client based in Target<T> (OpenFeign#502)
* Fix method name to produce client based in Target<T> * Move from build().newInstance to .target()
1 parent 530c4ae commit dfb36eb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ Feign can produce multiple api interfaces. These are defined as `Target<T>` (de
6060
For example, the following pattern might decorate each request with the current url and auth token from the identity service.
6161

6262
```java
63-
Feign feign = Feign.builder().build();
64-
CloudDNS cloudDNS = feign.target(new CloudIdentityTarget<CloudDNS>(user, apiKey));
63+
CloudDNS cloudDNS = Feign.builder().target(new CloudIdentityTarget<CloudDNS>(user, apiKey));
6564
```
6665

6766
### Examples

0 commit comments

Comments
 (0)