misc: Fix typos and spelling errors

This commit is contained in:
Edward Toroshchyn
2025-02-24 15:59:00 +01:00
parent 1f90de31e7
commit c25a2a257b
40 changed files with 62 additions and 62 deletions

View File

@@ -58,7 +58,7 @@ func Append(reterr, err error) error {
}
// String returns a string representation of the error. In particular, if the
// error is nil, it returns an empty string instead of panicing.
// error is nil, it returns an empty string instead of panicking.
func String(err error) string {
if err == nil {
return ""

View File

@@ -151,7 +151,7 @@ type UEvent struct {
}
// ReceiveUEvent is a wrapper around ReceiveBytes. Parses the UEvent data
// receieved from the socket and puts it into a UEvent struct.
// received from the socket and puts it into a UEvent struct.
func (obj *SocketSet) ReceiveUEvent() (*UEvent, error) {
// TODO: can multiple events come in the same socket?
event := &UEvent{Data: map[string]string{}}

View File

@@ -180,7 +180,7 @@ func (obj *EasyExit) Error() error {
// instantiated before it can be used. It must not be copied after first use. It
// is equivalent to receiving a multicast signal from a closing channel, except
// that it must be acknowledged by every reader of the signal, and once this is
// done, it is reset and can be re-used. Readers must obtain a handle to the
// done, it is reset and can be reused. Readers must obtain a handle to the
// signal with the Subscribe method, and the signal is sent out with the Done
// method.
type SubscribedSignal struct {
@@ -239,7 +239,7 @@ func (obj *SubscribedSignal) Send() {
obj.exit = make(chan struct{}) // reset
// release (re-use the above mutex)
// release (reuse the above mutex)
}
// BoundedReadSemaphore is a mutex that allows multiple Lock operations to occur