Skip to content

Commit

Permalink
doc: fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
a-cordier committed May 30, 2019
1 parent b40f868 commit c64fb5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bpk -d <src_dir> -o <file_name>.h -n <namespace>
### Use in your project

- Add the output file to your project
- Use `<namespace>.getResource(const char* key)` to get access to your file
- Use `<namespace>::getResource(const char* key)` to get access to your file

Files are named after their relative path inside their resource directory

Expand All @@ -48,7 +48,7 @@ resources
Running:

```sh
bpk -d ./resources -o resources.h -n Resource
bpk -d ./resources -o resources.h -n resources
```

- Will generate the following `resources.h` file
Expand All @@ -59,7 +59,7 @@ bpk -d ./resources -o resources.h -n Resource
#include <map>
#include <utility>

namespace Resources {
namespace resources {

namespace {

Expand All @@ -83,6 +83,6 @@ namespace Resources {
```cpp
#include "resources.h"
auto data = Resources.getResource("svg/play.svg")
auto data = resources::getResource("svg/play.svg")
```

0 comments on commit c64fb5e

Please sign in to comment.