Skip to content

Commit 0e96937

Browse files
committed
Fix some typos.
1 parent 511a215 commit 0e96937

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/Scripts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ If there are any lines of comments after the annotations, these specify the desc
5050
item. They will be concatenated into a single line, though if you have a blank line this will be
5151
preserved in the output.
5252

53-
For example, the following creates an argument named "ArgumentName" whole value will be stored in
53+
For example, the following creates an argument named "ArgumentName" whose value will be stored in
5454
the `arg` field. The argument is required, positional, and has a description:
5555

5656
```c++
@@ -199,7 +199,7 @@ Value | Description
199199
---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------
200200
**None** | Field names are used as-is, without changing them. This is the default. |
201201
**PascalCase** | Field names are transformed to PascalCase. This removes all underscores, and the first character and every character after an underscore is changed to uppercase. The case of other characters is not changed. | `some_name`, `_some_name`, `_someName` => SomeName
202-
**CamelCase** | Field names are transformed to camcelCase. Similar to PascalCase, but the first character will not be uppercase. | `some_name`, `_some_name`, `_SomeName`=> someName
202+
**CamelCase** | Field names are transformed to camelCase. Similar to PascalCase, but the first character will not be uppercase. | `some_name`, `_some_name`, `_SomeName`=> someName
203203
**SnakeCase** | Field names are transformed to snake_case. This removes leading and trailing underscores, changes all characters to lower-case, and reduces consecutive underscores to a single underscore. An underscore is inserted before previously capitalized letters. | `some_name`, `_some__name`, `_someName` => some_name
204204
**DashCase** | Field names are transformed to dash-case. Similar to SnakeCase, but uses a dash instead of an underscore. | `some_name`, `_some__name`, `_someName` => some-name
205205
**Trim** | Removes leading and trailing underscores, but leaves the rest of the name alone. | `some_name`, `_some_name` => some_name; `_someName` => someName

docs/ShellCommands.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ There are three ways the name of a command is determined when you call `add_comm
124124
manager.add_command<my_command>("name");
125125
```
126126

127-
2. If the name argument is omitted or an empty string, the compiler looks static method called
128-
`name()` on the shell command class, and if so, calls it to get the name.
127+
2. If the name argument is omitted or an empty string, the compiler looks for a static method called
128+
`name()` on the shell command class, and if found, calls it to get the name.
129129
3. If no such method exists, the type name (without the namespace prefix) is used as the name.
130130

131131
The description is determined in a similar way:
@@ -137,8 +137,8 @@ The description is determined in a similar way:
137137
manager.add_command<my_command>("name", "The description of the command.");
138138
```
139139

140-
2. If the description argument is omitted or an empty string, the compiler looks static method
141-
called `description()` on the shell command class, and if so, calls it to get the description.
140+
2. If the description argument is omitted or an empty string, the compiler looks for a static method
141+
called `description()` on the shell command class, and if found, calls it to get the description.
142142
3. If no such method exists, the description will be empty.
143143

144144
Here is an example of a class that uses the static methods to set its name and description:

0 commit comments

Comments
 (0)