Skip to content

Commit

Permalink
doc: add comma to example code (#217)
Browse files Browse the repository at this point in the history
* doc: add comma to example code

* Update 02-config.md

* Update 02-config.md

---------

Co-authored-by: Windfarer <[email protected]>
  • Loading branch information
kvii and Windfarer authored Sep 24, 2024
1 parent 81203d8 commit a9ff1ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/component/02-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ path := "configs/config.yaml"
c := config.New(
config.WithSource(
file.NewSource(path),
)
),
)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ path := "configs/config.yaml"
c := config.New(
config.WithSource(
file.NewSource(path),
)
),
)
```

If you want to use an external configuration center, you can find one in [contrib/config](https://github.com/go-kratos/kratos/tree/main/contrib/config). Taking Consul as an example:
Expand Down

0 comments on commit a9ff1ae

Please sign in to comment.