Skip to content

Commit dbd2050

Browse files
Fix spelling mistakes in cheatsheet.md
1 parent 866ef31 commit dbd2050

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

cheatsheet.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ chai.add(chaiscript::fun<ReturnType (ParamType1, ParamType2)>(&function_with_ove
4848
```cpp
4949
chai.add(chaiscript::fun(static_cast<ReturnType (*)(ParamType1, ParamType2)>(&function_with_overloads)), "function_name");
5050
```
51-
This overload technique is also used when exposing base member using derived type
51+
This overload technique is also used when exposing base members using derived type
5252

5353
```cpp
5454
struct Base
@@ -90,7 +90,7 @@ chai.add(chaiscript::user_type<MyClass>(), "MyClass");
9090

9191
## Adding Type Conversions
9292

93-
User defined type conversions are possible, defined in either script or in C++.
93+
User-defined type conversions are possible, defined in either script or in C++.
9494

9595

9696

@@ -111,7 +111,7 @@ Invoking a C++ type conversion possible with `static_cast`
111111
chai.add(chaiscript::type_conversion<T, bool>());
112112
```
113113

114-
Calling a user defined type conversion that takes a lambda
114+
Calling a user-defined type conversion that takes a lambda
115115

116116
```cpp
117117
chai.add(chaiscript::type_conversion<TestBaseType, Type2>([](const TestBaseType &t_bt) { /* return converted thing */ }));
@@ -183,7 +183,7 @@ print(math.pi) // prints 3.14159
183183
```
184184
185185
# Using STL
186-
ChaiScript recognize many types from STL, but you have to add specific instantiation yourself.
186+
ChaiScript recognizes many types from STL, but you have to add specific instantiation yourself.
187187
188188
```cpp
189189
typedef std::vector<std::pair<int, std::string>> data_list;
@@ -286,7 +286,7 @@ try {
286286
} catch (float) {
287287
} catch (const std::string &) {
288288
} catch (const std::exception &e) {
289-
// This is the one what will be called in the specific throw() above
289+
// This is the one that will be called in the specific throw() above
290290
}
291291
```
292292

@@ -388,9 +388,9 @@ switch (myvalue) {
388388
}
389389
```
390390

391-
## Built in Types
391+
## Built-in Types
392392

393-
There are a number of build-in types that are part of ChaiScript.
393+
There are a number of built-in types that are part of ChaiScript.
394394

395395
### Vectors and Maps
396396

@@ -427,7 +427,7 @@ on your platform.
427427
## Functions
428428

429429
Note that any type of ChaiScript function can be passed freely to C++ and automatically
430-
converted into an `std::function` object.
430+
converted into a `std::function` object.
431431

432432
### General
433433

@@ -580,7 +580,7 @@ If both a 2 parameter and a 3 parameter signature match, the 3 parameter functio
580580
* `__FUNC__` Name of current function
581581

582582

583-
# Built In Functions
583+
# Built-in Functions
584584

585585
## Evaluation
586586

0 commit comments

Comments
 (0)