Skip to content

Commit f2e1390

Browse files
committed
fix several typos
1 parent 4368cce commit f2e1390

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

newsapi.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func NewClient(apiKey string, opts ...ClientOption) *Client {
5555
// Everything retrieves articles by the provided parameters.
5656
// The uint return value indicates the number of available articles. The
5757
// length of the returned slice may be less than this value; additional calls
58-
// need to be make to retrieve other available articles.
58+
// need to be made to retrieve other available articles.
5959
// Endpoint documentation can be found here:
6060
// https://newsapi.org/docs/endpoints/everything
6161
func (c *Client) Everything(ctx context.Context, pr EverythingParams) ([]Article, uint, error) {
@@ -65,7 +65,7 @@ func (c *Client) Everything(ctx context.Context, pr EverythingParams) ([]Article
6565
// TopHeadlines retrieves top headlines articles by the provided parameters.
6666
// The uint return value indicates the number of available articles. The
6767
// length of the returned slice may be less than this value; additional calls
68-
// need to be make to retrieve other available articles.
68+
// need to be made to retrieve other available articles.
6969
// Endpoint documentation can be found here:
7070
// https://newsapi.org/docs/endpoints/top-headlines
7171
func (c *Client) TopHeadlines(ctx context.Context, pr TopHeadlinesParams) ([]Article, uint, error) {

newsapi_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func Test_Client_Everything(t *testing.T) {
9090
Message: "bad thing",
9191
},
9292
},
93-
"Succesfully fetched articles": {
93+
"Successfully fetched articles": {
9494
Param: EverythingParams{
9595
Query: "321",
9696
},
@@ -250,7 +250,7 @@ func Test_Client_TopHeadlines(t *testing.T) {
250250
Message: "bad thing",
251251
},
252252
},
253-
"Succesfully fetched articles": {
253+
"Successfully fetched articles": {
254254
Param: TopHeadlinesParams{
255255
Query: "321",
256256
},
@@ -413,7 +413,7 @@ func Test_Client_Sources(t *testing.T) {
413413
Message: "bad thing",
414414
},
415415
},
416-
"Succesfully fetched sources": {
416+
"Successfully fetched sources": {
417417
Param: SourceParams{
418418
Languages: []Language{
419419
LanguageChinese,

types.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ func (sr *SourceParams) validate() error {
350350
return nil
351351
}
352352

353-
// rawQuery constructsa a raw query from parameters.
353+
// rawQuery constructs a raw query from parameters.
354354
func (sr *SourceParams) rawQuery() string {
355355
q := make(url.Values)
356356

@@ -492,7 +492,7 @@ type EverythingParams struct {
492492
// * Words or phrases that must not appear in an article should be
493493
// prefixed with a minus (-) sign. e.g -bitcoin.
494494
// * "AND", "OR" and "NOT" keywords can be used to group several
495-
// queries. Paranthesis can be used to create subgroups. e.g:
495+
// queries. Parenthesis can be used to create subgroups. e.g:
496496
// crypto AND (ethereum OR litecoin) NOT bitcoin.
497497
// Query has a maximum length of 500 characters.
498498
Query string

0 commit comments

Comments
 (0)