chore(all): fix typos in code comments (#2216)

This commit is contained in:
wanshuangcheng
2024-05-02 15:24:49 +08:00
committed by GitHub
parent ebf4bf9ea8
commit 5dacbb994f
4 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ type PortForwarding struct {
// Provider is set to specify which custom port forwarding code // Provider is set to specify which custom port forwarding code
// should be used. This is especially necessary for the custom // should be used. This is especially necessary for the custom
// provider using Wireguard for a provider where Wireguard is not // provider using Wireguard for a provider where Wireguard is not
// natively supported but custom port forwading code is available. // natively supported but custom port forwarding code is available.
// It defaults to the empty string, meaning the current provider // It defaults to the empty string, meaning the current provider
// should be the one used for port forwarding. // should be the one used for port forwarding.
// It cannot be nil for the internal state. // It cannot be nil for the internal state.

View File

@@ -15,7 +15,7 @@ type Loop struct {
settings Settings settings Settings
settingsMutex sync.RWMutex settingsMutex sync.RWMutex
service Service service Service
// Fixed injected objets // Fixed injected objects
routing Routing routing Routing
client *http.Client client *http.Client
portAllower PortAllower portAllower PortAllower

View File

@@ -14,7 +14,7 @@ type Service struct {
settings Settings settings Settings
puid int puid int
pgid int pgid int
// Fixed injected objets // Fixed injected objects
routing Routing routing Routing
client *http.Client client *http.Client
portAllower PortAllower portAllower PortAllower
@@ -32,7 +32,7 @@ func New(settings Settings, routing Routing, client *http.Client,
settings: settings, settings: settings,
puid: puid, puid: puid,
pgid: pgid, pgid: pgid,
// Fixed injected objets // Fixed injected objects
routing: routing, routing: routing,
client: client, client: client,
portAllower: portAllower, portAllower: portAllower,

View File

@@ -19,7 +19,7 @@ type Loop struct {
settingsMutex sync.RWMutex settingsMutex sync.RWMutex
ipData models.PublicIP ipData models.PublicIP
ipDataMutex sync.RWMutex ipDataMutex sync.RWMutex
// Fixed injected objets // Fixed injected objects
fetcher Fetcher fetcher Fetcher
logger Logger logger Logger
// Fixed parameters // Fixed parameters