Skip to content

Commit

Permalink
Fixed examples for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Jun 25, 2024
1 parent 0b78485 commit f5a4685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example_modem_bits_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"go.bug.st/serial"
)

func ExampleGetSetModemBits() {
func ExamplePort_GetModemStatusBits() {
// Open the first serial port detected at 9600bps N81
mode := &serial.Mode{
BaudRate: 9600,
Expand Down
2 changes: 1 addition & 1 deletion example_serialport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"go.bug.st/serial"
)

func ExampleSerialPort_SetMode() {
func ExamplePort_SetMode() {
port, err := serial.Open("/dev/ttyACM0", &serial.Mode{})
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit f5a4685

Please sign in to comment.