Skip to content

Commit 271579d

Browse files
authored
Merge pull request #172 from mbergerman/readme_corrections
Fixed a few typos
2 parents c2900f6 + a46f2a6 commit 271579d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# raylib-cpp [![Tests](https://github.com/RobLoach/raylib-cpp/workflows/Tests/badge.svg)](https://github.com/RobLoach/raylib-cpp/actions?query=workflow%3ATests+branch%3Amaster) [![License](https://img.shields.io/badge/license-zlib%2Flibpng-blue.svg)](LICENSE)
44

5-
[raylib-cpp](https://github.com/robloach/raylib-cpp) is a C++ wrapper library for [raylib](https://www.raylib.com), a simple and easy-to-use library to enjoy videogames programming. This C++ header provides object-oriented wrappers around *raylib*'s struct interfaces. *raylib-cpp* is not required to use *raylib* in C++, but the classes do bring using the raylib API more inline with C++'s language pardigm.
5+
[raylib-cpp](https://github.com/robloach/raylib-cpp) is a C++ wrapper library for [raylib](https://www.raylib.com), a simple and easy-to-use library to enjoy videogames programming. This C++ header provides object-oriented wrappers around *raylib*'s struct interfaces. *raylib-cpp* is not required to use *raylib* in C++, but the classes do bring using the raylib API more inline with C++'s language paradigm.
66

77
## Example
88

@@ -86,7 +86,7 @@ texture.Draw(50, 50, WHITE);
8686
8787
### Optional Parameters
8888
89-
Many methods have optional parameters with sane defaults.
89+
Many methods have optional parameters with the same defaults.
9090
9191
``` cpp
9292
// raylib
@@ -98,7 +98,7 @@ texture.Draw(50, 50); // WHITE is provided as the default tint.
9898

9999
### Object Destructors
100100

101-
Objects will attempt to unload their respective raylib resources on destruction. This means no need to call Unload or Close methods. This applies to the window, textures, images, sounds, etc.
101+
Objects will attempt to unload their respective raylib resources on destruction. This means that there is no need to call Unload or Close methods. This applies to the window, textures, images, sounds, etc.
102102

103103
``` cpp
104104
// raylib
@@ -112,7 +112,7 @@ raylib::Window window(640, 480, "Hello World");
112112
113113
### Property Get/Set
114114
115-
Properties can be assigned through getter and setter methods. You still have access to the internal properties, however.
115+
Properties can be assigned through getter and setter methods. However, you still have access to the internal properties.
116116
117117
``` cpp
118118
// raylib
@@ -208,7 +208,7 @@ for (auto& file : files) {
208208

209209
### String Functions
210210

211-
Many of the raylib functions have `std::string`-related overrides to allow calling them directly with `std::string`s to save having to use the `.c_str()` method.
211+
Many of the raylib functions have `std::string`-related overrides to allow calling them directly with `std::string`s and avoid having to use the `.c_str()` method.
212212

213213
``` cpp
214214
// raylib
@@ -222,7 +222,7 @@ raylib::OpenURL(url);
222222
223223
### Exceptions
224224
225-
When loading an asset fails, raylib will log a warning, but provide no other feedback for you to act upon. raylib-cpp will throw a [`RaylibException`](include/RaylibException.hpp) [runtime exception](https://en.cppreference.com/w/cpp/error/runtime_error), allowing to provide a safe method to catch failed loads.
225+
When loading an asset fails, raylib will log a warning, but provide no other feedback for you to act upon. raylib-cpp will throw a [`RaylibException`](include/RaylibException.hpp) [runtime exception](https://en.cppreference.com/w/cpp/error/runtime_error), allowing to provide a safe method for catching failed loads.
226226
227227
``` cpp
228228
// raylib

0 commit comments

Comments
 (0)