Merge pull request #908 from goodfirm/master

chore: fix function names in comment
This commit is contained in:
Gene
2024-04-10 07:40:07 -07:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@ -2894,7 +2894,7 @@ func (t *Topic) replyGetCreds(sess *Session, asUid types.Uid, msg *ClientComMess
return nil
}
// replySetCreds adds or validates user credentials such as email and phone numbers.
// replySetCred adds or validates user credentials such as email and phone numbers.
func (t *Topic) replySetCred(sess *Session, asUid types.Uid, authLevel auth.Level, msg *ClientComMessage) error {
now := types.TimeNow()
set := msg.Set

View File

@ -103,7 +103,7 @@ func normalizeTags(src []string) types.StringSlice {
return types.StringSlice(dst)
}
// stringDelta extracts the slices of added and removed strings from two slices:
// stringSliceDelta extracts the slices of added and removed strings from two slices:
//
// added := newSlice - (oldSlice & newSlice) -- present in new but missing in old
// removed := oldSlice - (oldSlice & newSlice) -- present in old but missing in new
@ -424,7 +424,7 @@ func filterRestrictedTags(tags []string, namespaces map[string]bool) []string {
return out
}
// rewriteToken attempts to match the original token against the email, telephone number and optionally login patterns.
// rewriteTag attempts to match the original token against the email, telephone number and optionally login patterns.
// The tag is expected to be converted to lowercase.
// On success, it prepends the token with the corresponding prefix. It returns an empty string if the tag is invalid.
// TODO: consider inferring country code from user location.