Skip to content

Commit 7f32061

Browse files
author
Volodymyr Kryvytskyi
authored
Fix parameter order in convertToCase documentation
1 parent 2206a8f commit 7f32061

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Messages:
6767
- If `toCase` value is not from listed above: `This case is not supported. Available cases: SNAKE, KEBAB, CAMEL, PASCAL, UPPER.`
6868

6969
#### Invoke business logic
70-
If validation is called you should invoke business logic (`convertToCase` function from `src/convertToCase` folder). It accepts two params: case name and text to convert.
70+
If validation is called you should invoke business logic (`convertToCase` function from `src/convertToCase` folder). It accepts two params: text to convert and case name.
7171
> Business logic is also covered with tests. They are already passed. Just for you to be sure that it works correctly.
7272
7373
Function return the next object:
@@ -80,7 +80,7 @@ Function return the next object:
8080

8181
For example:
8282
```javascript
83-
const result = convertToCase('UPPER', 'writeFile');
83+
const result = convertToCase('writeFile', 'UPPER');
8484

8585
console.log(result); // { originalCase: 'CAMEL', convertedText: 'WRITE_FILE' }
8686
```

0 commit comments

Comments
 (0)