Skip to content

Commit f96199b

Browse files
committed
Update README.md
typo
1 parent e9259db commit f96199b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ serial.open(opts, function success(), function error());
3434

3535
You're now able to read and write:
3636
```js
37-
serial.write(function success(), function error());
38-
serial.read(data, function success(), function error());
37+
serial.write(data, function success(), function error());
38+
serial.read(function success(), function error());
3939
```
4040
`data` is the string representation to be written to the serial port.
4141

@@ -71,4 +71,4 @@ serial.requestPermission(
7171
},
7272
errorCallback
7373
);
74-
```
74+
```

0 commit comments

Comments
 (0)