Skip to content

Commit 570c10e

Browse files
committed
fix typo #233
1 parent 8a278b3 commit 570c10e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

list/listfollow/api.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
const (
1111
listFollowersEndpoint = "https://api.twitter.com/2/lists/:id/followers"
12-
listFollwedEndpoint = "https://api.twitter.com/2/users/:id/followed_lists"
12+
listFollowedEndpoint = "https://api.twitter.com/2/users/:id/followed_lists"
1313
createEndpoint = "https://api.twitter.com/2/users/:id/followed_lists"
1414
deleteEndpoint = "https://api.twitter.com/2/users/:id/followed_lists/:list_id"
1515
)
@@ -27,9 +27,9 @@ func ListFollowers(ctx context.Context, c *gotwi.Client, p *types.ListFollowersI
2727

2828
// Returns all Lists a specified user follows.
2929
// https://developer.twitter.com/en/docs/twitter-api/lists/list-follows/api-reference/get-users-id-followed_lists
30-
func ListFollwed(ctx context.Context, c *gotwi.Client, p *types.ListFollowedInput) (*types.ListFollowedOutput, error) {
30+
func ListFollowed(ctx context.Context, c *gotwi.Client, p *types.ListFollowedInput) (*types.ListFollowedOutput, error) {
3131
res := &types.ListFollowedOutput{}
32-
if err := c.CallAPI(ctx, listFollwedEndpoint, "GET", p, res); err != nil {
32+
if err := c.CallAPI(ctx, listFollowedEndpoint, "GET", p, res); err != nil {
3333
return nil, err
3434
}
3535

0 commit comments

Comments
 (0)