mirror of
https://github.com/lightbend/config.git
synced 2025-01-15 23:01:05 +08:00
fix the example API usage in the README
This commit is contained in:
parent
8b6f4c6156
commit
13362f46b4
@ -50,9 +50,9 @@ and warrant that you have the legal authority to do so.
|
||||
## API Example
|
||||
|
||||
ConfigRoot root = Config.load("myapp")
|
||||
int a = conf.getInt("foo.bar")
|
||||
ConfigObject obj = conf.getObject("foo")
|
||||
int b = obj.getInt("bar")
|
||||
int bar1 = conf.getInt("foo.bar")
|
||||
Config foo = conf.getConfig("foo")
|
||||
int bar2 = obj.getInt("bar")
|
||||
|
||||
## Standard behavior
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user