chore: remove repetitive words in comments

Signed-off-by: dongjinlong <dongjinlong@outlook.com>
This commit is contained in:
dongjinlong
2024-03-26 19:57:40 +08:00
parent cc37e536cb
commit ba02461e12
22 changed files with 23 additions and 23 deletions
+2 -2
View File
@@ -194,7 +194,7 @@ func (r *Registry) newQueueLocked(ctx context.Context, key ipc.Key, creds *auth.
// Remove removes the queue with specified ID. All waiters (readers and
// writers) and writers will be awakened and fail. Remove will return an error
// if the ID is invalid, or the the user doesn't have privileges.
// if the ID is invalid, or the user doesn't have privileges.
func (r *Registry) Remove(id ipc.ID, creds *auth.Credentials) error {
r.mu.Lock()
defer r.mu.Unlock()
@@ -491,7 +491,7 @@ func (q *Queue) msgOfType(mType int64, except bool) *Message {
return nil
}
// msgOfTypeLessThan return the the first message with the lowest type less
// msgOfTypeLessThan return the first message with the lowest type less
// than or equal to mType, nil if no such message exists.
//
// Precondition: caller must hold q.mu.