Skip to content

Commit 04cfcf3

Browse files
gaganxsainiidoocs
authored andcommitted
style: format code and docs with prettier
1 parent bb698f4 commit 04cfcf3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

solution/0000-0099/0008.String to Integer (atoi)/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,14 +357,15 @@ class Solution {
357357
```
358358

359359
#### C++
360+
360361
```c++
361362
class Solution {
362363
public:
363364
int myAtoi(string s) {
364365
int i = 0, n = s.size();
365366
while (i < n && s[i] == ' ')
366367
++i;
367-
368+
368369
int sign = 1;
369370
if (i < n && (s[i] == '-' || s[i] == '+')) {
370371
sign = s[i] == '-' ? -1 : 1;

solution/0000-0099/0008.String to Integer (atoi)/README_EN.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,14 +353,15 @@ class Solution {
353353
```
354354

355355
#### C++
356+
356357
```c++
357358
class Solution {
358359
public:
359360
int myAtoi(string s) {
360361
int i = 0, n = s.size();
361362
while (i < n && s[i] == ' ')
362363
++i;
363-
364+
364365
int sign = 1;
365366
if (i < n && (s[i] == '-' || s[i] == '+')) {
366367
sign = s[i] == '-' ? -1 : 1;

0 commit comments

Comments
 (0)