From 71bbfd0d78cee8f14331d30b37eeeae31e0c3120 Mon Sep 17 00:00:00 2001 From: Paul Dee Date: Thu, 23 Nov 2023 20:01:16 +0100 Subject: [PATCH] Minor comment fixes. --- cmd/yggdrasil/main.go | 8 ++++---- contrib/mobile/mobile.go | 4 ++-- src/core/link.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/yggdrasil/main.go b/cmd/yggdrasil/main.go index a225755c..bb912152 100644 --- a/cmd/yggdrasil/main.go +++ b/cmd/yggdrasil/main.go @@ -185,7 +185,7 @@ func main() { n := &node{} - // Setup the Yggdrasil node itself. + // Set up the Yggdrasil node itself. { options := []core.SetupOption{ core.NodeInfo(cfg.NodeInfo), @@ -218,7 +218,7 @@ func main() { logger.Infof("Your IPv6 subnet is %s", subnet.String()) } - // Setup the admin socket. + // Set up the admin socket. { options := []admin.SetupOption{ admin.ListenAddress(cfg.AdminListen), @@ -234,7 +234,7 @@ func main() { } } - // Setup the multicast module. + // Set up the multicast module. { options := []multicast.SetupOption{} for _, intf := range cfg.MulticastInterfaces { @@ -255,7 +255,7 @@ func main() { } } - // Setup the TUN module. + // Set up the TUN module. { options := []tun.SetupOption{ tun.InterfaceName(cfg.IfName), diff --git a/contrib/mobile/mobile.go b/contrib/mobile/mobile.go index cf026a70..82e73485 100644 --- a/contrib/mobile/mobile.go +++ b/contrib/mobile/mobile.go @@ -53,7 +53,7 @@ func (m *Yggdrasil) StartJSON(configjson []byte) error { if err := m.config.UnmarshalHJSON(configjson); err != nil { return err } - // Setup the Yggdrasil node itself. + // Set up the Yggdrasil node itself. { options := []core.SetupOption{} for _, peer := range m.config.Peers { @@ -85,7 +85,7 @@ func (m *Yggdrasil) StartJSON(configjson []byte) error { logger.Infof("Your IPv6 subnet is %s", subnet.String()) } - // Setup the multicast module. + // Set up the multicast module. if len(m.config.MulticastInterfaces) > 0 { var err error logger.Infof("Initializing multicast %s", "") diff --git a/src/core/link.go b/src/core/link.go index 0f445ff5..29f451ea 100644 --- a/src/core/link.go +++ b/src/core/link.go @@ -61,7 +61,7 @@ type link struct { // The remaining fields can only be modified safely from within the links actor _conn *linkConn // Connected link, if any, nil if not connected _err error // Last error on the connection, if any - _errtime time.Time // Last time an error occured + _errtime time.Time // Last time an error occurred } type linkOptions struct {