Fixes README.md.

Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
This commit is contained in:
Tao He 2021-02-07 09:32:07 +08:00
parent 842372d86d
commit 7aa851420c
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@ build/
compile_commands.json compile_commands.json
proto/**/*.pb.cc proto/**/*.pb.cc
proto/**/*.pb.h proto/**/*.pb.h
default.etcd/

View File

@ -216,7 +216,7 @@ arguments when launching etcd server).
Or the etcd client can be constructed explictly: Or the etcd client can be constructed explictly:
```c++ ```c++
etcd::Client *etcd = etcd::Client::WithUser( etcd::Client *etcd = etcd::Client::WithSSL(
"https://127.0.0.1:2379", "https://127.0.0.1:2379",
"example.rootca.cert", "example.cert", "example.key"); "example.rootca.cert", "example.cert", "example.key");
``` ```
@ -224,7 +224,7 @@ Or the etcd client can be constructed explictly:
Using secure transport but not certificated-based client authentication: Using secure transport but not certificated-based client authentication:
```c++ ```c++
etcd::Client *etcd = etcd::Client::WithUser( etcd::Client *etcd = etcd::Client::WithSSL(
"https://127.0.0.1:2379", "example.rootca.cert"); "https://127.0.0.1:2379", "example.rootca.cert");
``` ```