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
+5 -5
View File
@@ -119,7 +119,7 @@ type rootMultiDescription struct {
} `json:"data"`
}
// Get gets information about the multireddit from its url path.
// Get the multireddit from its url path.
func (s *MultiService) Get(ctx context.Context, multiPath string) (*Multi, *Response, error) {
path := fmt.Sprintf("api/multi/%s", multiPath)
@@ -184,7 +184,7 @@ func (s *MultiService) Of(ctx context.Context, username string) ([]Multi, *Respo
return multis, resp, nil
}
// Copy copies a multireddit.
// Copy a multireddit.
func (s *MultiService) Copy(ctx context.Context, copyRequest *MultiCopyRequest) (*Multi, *Response, error) {
if copyRequest == nil {
return nil, nil, errors.New("copyRequest: cannot be nil")
@@ -210,7 +210,7 @@ func (s *MultiService) Copy(ctx context.Context, copyRequest *MultiCopyRequest)
return root.Data, resp, nil
}
// Create creates a multireddit.
// Create a multireddit.
func (s *MultiService) Create(ctx context.Context, createRequest *MultiCreateOrUpdateRequest) (*Multi, *Response, error) {
if createRequest == nil {
return nil, nil, errors.New("createRequest: cannot be nil")
@@ -232,7 +232,7 @@ func (s *MultiService) Create(ctx context.Context, createRequest *MultiCreateOrU
return root.Data, resp, nil
}
// Update updates a multireddit.
// Update a multireddit.
// If the multireddit does not exist, it will be created.
func (s *MultiService) Update(ctx context.Context, multiPath string, updateRequest *MultiCreateOrUpdateRequest) (*Multi, *Response, error) {
if updateRequest == nil {
@@ -255,7 +255,7 @@ func (s *MultiService) Update(ctx context.Context, multiPath string, updateReque
return root.Data, resp, nil
}
// Delete deletes a multireddit.
// Delete a multireddit.
func (s *MultiService) Delete(ctx context.Context, multiPath string) (*Response, error) {
path := fmt.Sprintf("api/multi/%s", multiPath)