Skip to content

Commit 094bef1

Browse files
authored
Update README.md
1 parent 6f3bdeb commit 094bef1

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,19 +190,18 @@ When there is a function that would return a pointer-array, there is a wrapper t
190190
191191
``` cpp
192192
// raylib
193-
int count;
194193
FilePathList files = LoadDirectoryFiles(".");
195-
printf("Count: %i\n", files.count);
196-
for (int i = 0; i < count; i++) {
197-
printf("File: %s\n", files.paths[i]);
194+
TraceLog(LOG_INFO, "Count: %i", files.count);
195+
for (int i = 0; i < files.count; i++) {
196+
TraceLog(LOG_INFO, "File: %s", files.paths[i]);
198197
}
199198
UnloadDirectoryFiles(files);
200199
201200
// raylib-cpp
202201
std::vector<std::string> files = raylib::GetDirectoryFiles(".");
203-
std::cout << "Count: " << files.size() << std::endl;
202+
TraceLog(LOG_INFO, "Count: %i", files.size());
204203
for (auto& file : files) {
205-
std::cout << "File: " << file << std::endl;
204+
TraceLog(LOG_INFO, "File: %s", file.c_str());
206205
}
207206
```
208207

@@ -259,7 +258,7 @@ raylib::Vector2 newDirection = direction.Rotate(30);
259258
*raylib-cpp* is a header-only library. This means in order to use it, you must link your project to [raylib](https://www.raylib.com/), and then include [`raylib-cpp.hpp`](raylib-cpp/include/raylib-cpp.hpp).
260259
261260
1. Set up a *raylib* project using the [build and install instructions](https://github.com/raysan5/raylib#build-and-installation)
262-
2. Ensure C++ files are compiled with C++
261+
2. Ensure `.cpp` files are compiled with C++
263262
3. Download *raylib-cpp*
264263
4. Include [`include/raylib-cpp.hpp`](include/raylib-cpp.hpp)
265264
``` cpp

0 commit comments

Comments
 (0)