fix the example API usage in the README

This commit is contained in:
Havoc Pennington 2011-11-18 16:14:34 -05:00
parent 8b6f4c6156
commit 13362f46b4

View File

@ -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