Skip to content

Commit f5a4685

Browse files
committed
Fixed examples for docs
1 parent 0b78485 commit f5a4685

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example_modem_bits_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"go.bug.st/serial"
1515
)
1616

17-
func ExampleGetSetModemBits() {
17+
func ExamplePort_GetModemStatusBits() {
1818
// Open the first serial port detected at 9600bps N81
1919
mode := &serial.Mode{
2020
BaudRate: 9600,

example_serialport_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"go.bug.st/serial"
1414
)
1515

16-
func ExampleSerialPort_SetMode() {
16+
func ExamplePort_SetMode() {
1717
port, err := serial.Open("/dev/ttyACM0", &serial.Mode{})
1818
if err != nil {
1919
log.Fatal(err)

0 commit comments

Comments
 (0)