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
+4 -4
View File
@@ -101,7 +101,7 @@ func (s *CollectionService) FromSubreddit(ctx context.Context, id string) ([]*Co
return collections, resp, nil
}
// Create creates a collection.
// Create a collection.
func (s *CollectionService) Create(ctx context.Context, createRequest *CollectionCreateRequest) (*Collection, *Response, error) {
if createRequest == nil {
return nil, nil, errors.New("createRequest: cannot be nil")
@@ -128,7 +128,7 @@ func (s *CollectionService) Create(ctx context.Context, createRequest *Collectio
return collection, resp, nil
}
// Delete deletes a collection via its id.
// Delete a collection via its id.
func (s *CollectionService) Delete(ctx context.Context, id string) (*Response, error) {
path := "api/v1/collections/delete_collection"
@@ -255,7 +255,7 @@ func (s *CollectionService) UpdateLayoutGallery(ctx context.Context, id string)
return s.client.Do(ctx, req, nil)
}
// Follow follows a collection.
// Follow a collection.
func (s *CollectionService) Follow(ctx context.Context, id string) (*Response, error) {
path := "api/v1/collections/follow_collection"
@@ -271,7 +271,7 @@ func (s *CollectionService) Follow(ctx context.Context, id string) (*Response, e
return s.client.Do(ctx, req, nil)
}
// Unfollow unfollows a collection.
// Unfollow a collection.
func (s *CollectionService) Unfollow(ctx context.Context, id string) (*Response, error) {
path := "api/v1/collections/follow_collection"