Edit comments

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-27 18:49:30 -04:00
parent a14cb3a3c8
commit 73945e9aae
11 changed files with 45 additions and 46 deletions
+3 -3
View File
@@ -73,7 +73,7 @@ func (e *emojis) UnmarshalJSON(data []byte) (err error) {
return
}
// Get returns the default set of Reddit emojis, and those of the subreddit, respectively.
// Get the default set of Reddit emojis and those of the subreddit, respectively.
func (s *EmojiService) Get(ctx context.Context, subreddit string) ([]*Emoji, []*Emoji, *Response, error) {
path := fmt.Sprintf("api/v1/%s/emojis/all", subreddit)
@@ -101,7 +101,7 @@ func (s *EmojiService) Get(ctx context.Context, subreddit string) ([]*Emoji, []*
return defaultEmojis, subredditEmojis, resp, nil
}
// Delete deletes the emoji from the subreddit.
// Delete the emoji from the subreddit.
func (s *EmojiService) Delete(ctx context.Context, subreddit string, emoji string) (*Response, error) {
path := fmt.Sprintf("api/v1/%s/emoji/%s", subreddit, emoji)
@@ -199,7 +199,7 @@ func (s *EmojiService) upload(ctx context.Context, subreddit string, createReque
return s.client.Do(ctx, req, nil)
}
// Upload uploads an emoji to the subreddit.
// Upload an emoji to the subreddit.
func (s *EmojiService) Upload(ctx context.Context, subreddit string, createRequest *EmojiCreateOrUpdateRequest, imagePath string) (*Response, error) {
if createRequest == nil {
return nil, errors.New("createRequest: cannot be nil")