Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

fix typos #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tcpip/sample/tun_tcp_connect/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ func main() {

// Create TCP endpoint.
var wq waiter.Queue
ep, e := s.NewEndpoint(tcp.ProtocolNumber, ipv4.ProtocolNumber, &wq)
ep, err := s.NewEndpoint(tcp.ProtocolNumber, ipv4.ProtocolNumber, &wq)
if err != nil {
log.Fatal(e)
log.Fatal(err)
}

// Bind if a port is specified.
Expand Down
4 changes: 2 additions & 2 deletions tcpip/sample/tun_tcp_echo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ func main() {

// Create TCP endpoint, bind it, then start listening.
var wq waiter.Queue
ep, e := s.NewEndpoint(tcp.ProtocolNumber, proto, &wq)
ep, err := s.NewEndpoint(tcp.ProtocolNumber, proto, &wq)
if err != nil {
log.Fatal(e)
log.Fatal(err)
}

defer ep.Close()
Expand Down