Skip to content

Commit

Permalink
Merge pull request #191 from iuriizhesson/fix-typos
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
strideynet authored May 22, 2022
2 parents 655fcda + 91781ab commit c886435
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions album.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type SimpleAlbum struct {
// available in a market when at least 1 of its
// tracks is available in that market.
AvailableMarkets []string `json:"available_markets"`
// A link to the Web API enpoint providing full
// A link to the Web API endpoint providing full
// details of the album.
Endpoint string `json:"href"`
// The cover art for the album in various sizes,
Expand Down Expand Up @@ -85,7 +85,7 @@ type FullAlbum struct {
Genres []string `json:"genres"`
// The popularity of the album, represented as an integer between 0 and 100,
// with 100 being the most popular. Popularity of an album is calculated
// from the popularify of the album's individual tracks.
// from the popularity of the album's individual tracks.
Popularity int `json:"popularity"`
Tracks SimpleTrackPage `json:"tracks"`
ExternalIDs map[string]string `json:"external_ids"`
Expand Down
2 changes: 1 addition & 1 deletion artist.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type SimpleArtist struct {
ID ID `json:"id"`
// The Spotify URI for the artist.
URI URI `json:"uri"`
// A link to the Web API enpoint providing full details of the artist.
// A link to the Web API endpoint providing full details of the artist.
Endpoint string `json:"href"`
ExternalURLs map[string]string `json:"external_urls"`
}
Expand Down
4 changes: 2 additions & 2 deletions audio_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type AudioFeatures struct {
Danceability float32 `json:"danceability"`
// The length of the track in milliseconds.
Duration int `json:"duration_ms"`
// Energy is a measure from 0.0 to 1.0 and represents a perceptual mesaure
// Energy is a measure from 0.0 to 1.0 and represents a perceptual measure
// of intensity and activity. Typically, energetic tracks feel fast, loud,
// and noisy.
Energy float32 `json:"energy"`
Expand All @@ -42,7 +42,7 @@ type AudioFeatures struct {
Key int `json:"key"`
// Detects the presence of an audience in the recording. Higher liveness
// values represent an increased probability that the track was performed live.
// A value above 0.8 provides strong likelihook that the track is live.
// A value above 0.8 provides strong likelihood that the track is live.
Liveness float32 `json:"liveness"`
// The overall loudness of a track in decibels (dB). Loudness values are
// averaged across the entire track and are useful for comparing the relative
Expand Down
6 changes: 3 additions & 3 deletions auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const (
// ScopeUserLibraryRead seeks read access to a user's "Your Music" library.
ScopeUserLibraryRead = "user-library-read"
// ScopeUserReadPrivate seeks read access to a user's
// subsription details (type of user account).
// subscription details (type of user account).
ScopeUserReadPrivate = "user-read-private"
// ScopeUserReadEmail seeks read access to a user's email address.
ScopeUserReadEmail = "user-read-email"
Expand All @@ -70,7 +70,7 @@ const (
//
// Example:
//
// a := spotifyauth.New(redirectURL, spotify.ScopeUserLibaryRead, spotify.ScopeUserFollowRead)
// a := spotifyauth.New(redirectURL, spotify.ScopeUserLibraryRead, spotify.ScopeUserFollowRead)
// // direct user to Spotify to log in
// http.Redirect(w, r, a.AuthURL("state-string"), http.StatusFound)
//
Expand Down Expand Up @@ -143,7 +143,7 @@ func New(opts ...AuthenticatorOption) *Authenticator {
// Without this, users who have already approved the app are immediately redirected to the redirect uri.
var ShowDialog = oauth2.SetAuthURLParam("show_dialog", "true")

// AuthURL returns a URL to the the Spotify Accounts Service's OAuth2 endpoint.
// AuthURL returns a URL to the Spotify Accounts Service's OAuth2 endpoint.
//
// State is a token to protect the user from CSRF attacks. You should pass the
// same state to `Token`, where it will be validated. For more info, refer to
Expand Down
4 changes: 2 additions & 2 deletions playlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ func (c *Client) AddTracksToPlaylist(ctx context.Context, playlistID ID, trackID
}

// RemoveTracksFromPlaylist removes one or more tracks from a user's playlist.
// This call requrles that the user has authorized the ScopePlaylistModifyPublic
// This call requires that the user has authorized the ScopePlaylistModifyPublic
// or ScopePlaylistModifyPrivate scopes.
//
// If the track(s) occur multiple times in the specified playlist, then all occurrences
Expand Down Expand Up @@ -519,7 +519,7 @@ func (c *Client) removeTracksFromPlaylist(
// ScopePlaylistModifyPublic scope. Modifying a private playlist requires the
// ScopePlaylistModifyPrivate scope.
//
// A maximum of 100 tracks is permited in this call. Additional tracks must be
// A maximum of 100 tracks is permitted in this call. Additional tracks must be
// added via AddTracksToPlaylist.
func (c *Client) ReplacePlaylistTracks(ctx context.Context, playlistID ID, trackIDs ...ID) error {
trackURIs := make([]string, len(trackIDs))
Expand Down
4 changes: 2 additions & 2 deletions playlist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func TestChangePlaylistDescription(t *testing.T) {
}
}

func TestChangePlaylistNamdAndAccess(t *testing.T) {
func TestChangePlaylistNameAndAccess(t *testing.T) {
client, server := testClientString(http.StatusOK, "")
defer server.Close()

Expand All @@ -410,7 +410,7 @@ func TestChangePlaylistNamdAndAccess(t *testing.T) {
}
}

func TestChangePlaylistNamdAccessAndDescription(t *testing.T) {
func TestChangePlaylistNameAccessAndDescription(t *testing.T) {
client, server := testClientString(http.StatusOK, "")
defer server.Close()

Expand Down
4 changes: 2 additions & 2 deletions spotify.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package spotify provides utilties for interfacing
// Package spotify provides utilities for interfacing
// with Spotify's Web API.
package spotify

Expand Down Expand Up @@ -52,7 +52,7 @@ type Client struct {

type ClientOption func(client *Client)

// WithRetry configures the Spotify API client to automatically retry requests that fail due to ratelimiting.
// WithRetry configures the Spotify API client to automatically retry requests that fail due to rate limiting.
func WithRetry(shouldRetry bool) ClientOption {
return func(client *Client) {
client.autoRetry = shouldRetry
Expand Down
12 changes: 6 additions & 6 deletions track_attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (ta *TrackAttributes) TargetDuration(duration int) *TrackAttributes {
}

// MaxEnergy sets the maximum energy
// Energy is a measure from 0.0 to 1.0 and represents a perceptual mesaure
// Energy is a measure from 0.0 to 1.0 and represents a perceptual measure
// of intensity and activity. Typically, energetic tracks feel fast, loud,
// and noisy.
func (ta *TrackAttributes) MaxEnergy(energy float64) *TrackAttributes {
Expand All @@ -116,7 +116,7 @@ func (ta *TrackAttributes) MaxEnergy(energy float64) *TrackAttributes {
}

// MinEnergy sets the minimum energy
// Energy is a measure from 0.0 to 1.0 and represents a perceptual mesaure
// Energy is a measure from 0.0 to 1.0 and represents a perceptual measure
// of intensity and activity. Typically, energetic tracks feel fast, loud,
// and noisy.
func (ta *TrackAttributes) MinEnergy(energy float64) *TrackAttributes {
Expand All @@ -125,7 +125,7 @@ func (ta *TrackAttributes) MinEnergy(energy float64) *TrackAttributes {
}

// TargetEnergy sets the target energy
// Energy is a measure from 0.0 to 1.0 and represents a perceptual mesaure
// Energy is a measure from 0.0 to 1.0 and represents a perceptual measure
// of intensity and activity. Typically, energetic tracks feel fast, loud,
// and noisy.
func (ta *TrackAttributes) TargetEnergy(energy float64) *TrackAttributes {
Expand Down Expand Up @@ -202,7 +202,7 @@ func (ta *TrackAttributes) TargetKey(key int) *TrackAttributes {
// MaxLiveness sets the maximum liveness
// Detects the presence of an audience in the recording. Higher liveness
// values represent an increased probability that the track was performed live.
// A value above 0.8 provides strong likelihook that the track is live.
// A value above 0.8 provides strong likelihood that the track is live.
func (ta *TrackAttributes) MaxLiveness(liveness float64) *TrackAttributes {
ta.floatAttributes["max_liveness"] = liveness
return ta
Expand All @@ -211,7 +211,7 @@ func (ta *TrackAttributes) MaxLiveness(liveness float64) *TrackAttributes {
// MinLiveness sets the minimum liveness
// Detects the presence of an audience in the recording. Higher liveness
// values represent an increased probability that the track was performed live.
// A value above 0.8 provides strong likelihook that the track is live.
// A value above 0.8 provides strong likelihood that the track is live.
func (ta *TrackAttributes) MinLiveness(liveness float64) *TrackAttributes {
ta.floatAttributes["min_liveness"] = liveness
return ta
Expand All @@ -220,7 +220,7 @@ func (ta *TrackAttributes) MinLiveness(liveness float64) *TrackAttributes {
// TargetLiveness sets the target liveness
// Detects the presence of an audience in the recording. Higher liveness
// values represent an increased probability that the track was performed live.
// A value above 0.8 provides strong likelihook that the track is live.
// A value above 0.8 provides strong likelihood that the track is live.
func (ta *TrackAttributes) TargetLiveness(liveness float64) *TrackAttributes {
ta.floatAttributes["target_liveness"] = liveness
return ta
Expand Down
2 changes: 1 addition & 1 deletion user.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type PrivateUser struct {
User
// The country of the user, as set in the user's account profile.
// An ISO 3166-1 alpha-2 country code. This field is only available when the
// current user has granted acess to the ScopeUserReadPrivate scope.
// current user has granted access to the ScopeUserReadPrivate scope.
Country string `json:"country"`
// The user's email address, as entered by the user when creating their account.
// Note: this email is UNVERIFIED - there is no proof that it actually
Expand Down

0 comments on commit c886435

Please sign in to comment.