Skip to content

Commit

Permalink
Fix spelling (cloudflare#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Jul 2, 2020
1 parent 83c4d8d commit 2e38571
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion access_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ type AccessGroupAccessGroup struct {
}

// AccessGroupCertificate is used for managing access to based on a valid
// mTLS cerificate being presented.
// mTLS certificate being presented.
type AccessGroupCertificate struct {
Certificate struct{} `json:"certificate"`
}
Expand Down
2 changes: 1 addition & 1 deletion access_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type AccessPolicy struct {
}

// AccessPolicyListResponse represents the response from the list
// access polciies endpoint.
// access policies endpoint.
type AccessPolicyListResponse struct {
Result []AccessPolicy `json:"result"`
Response
Expand Down
2 changes: 1 addition & 1 deletion auditlogs.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type AuditLogFilter struct {
}

// ToQuery turns an audit log filter in to an HTTP Query Param
// list, suitable for use in a url.URL.RawQuery. It will not inclue empty
// list, suitable for use in a url.URL.RawQuery. It will not include empty
// members of the struct in the query parameters.
func (a AuditLogFilter) ToQuery() url.Values {
v := url.Values{}
Expand Down
2 changes: 1 addition & 1 deletion cmd/flarectl/flarectl.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func main() {
Name: "create-or-update",
Aliases: []string{"o"},
Action: firewallAccessRuleCreateOrUpdate,
Usage: "Creatae a firewall access rule, or update it if it exists",
Usage: "Create a firewall access rule, or update it if it exists",
Flags: []cli.Flag{
cli.StringFlag{
Name: "zone",
Expand Down
2 changes: 1 addition & 1 deletion healthchecks.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ type HealthcheckListResponse struct {
ResultInfo `json:"result_info"`
}

// HealthcheckResponse is the API response, containting a single healthcheck.
// HealthcheckResponse is the API response, containing a single healthcheck.
type HealthcheckResponse struct {
Response
Result Healthcheck `json:"result"`
Expand Down
2 changes: 1 addition & 1 deletion keyless.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type KeylessSSL struct {
Enabled bool `json:"enabled"`
Permissions []string `json:"permissions"`
CreatedOn time.Time `json:"created_on"`
ModifiedOn time.Time `json:"modifed_on"`
ModifiedOn time.Time `json:"modified_on"`
}

// KeylessSSLResponse represents the response from the Keyless SSL endpoint.
Expand Down
2 changes: 1 addition & 1 deletion logpull.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type LogpullRetentionConfiguration struct {
}

// LogpullRetentionConfigurationResponse is the API response, containing the
// Logpull rentention result.
// Logpull retention result.
type LogpullRetentionConfigurationResponse struct {
Response
Result LogpullRetentionConfiguration `json:"result"`
Expand Down
2 changes: 1 addition & 1 deletion logpush_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func TestValidateLogpushOwnershipChallenge(t *testing.T) {
}
}

func TestCheckLogpushDestiantionExists(t *testing.T) {
func TestCheckLogpushDestinationExists(t *testing.T) {
testCases := map[string]struct {
exists bool
}{
Expand Down
2 changes: 1 addition & 1 deletion railgun.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ type RailgunDiagnosis struct {
CFCacheStatus string `json:"cf-cache-status"`
}

// railgunDiagnosisResponse represents the response from the Test Railgun Connection enpoint.
// railgunDiagnosisResponse represents the response from the Test Railgun Connection endpoint.
type railgunDiagnosisResponse struct {
Response
Result RailgunDiagnosis `json:"result"`
Expand Down
2 changes: 1 addition & 1 deletion railgun_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func TestEnableRailgun(t *testing.T) {
assert.Error(t, err)
}

func TestDisbleRailgun(t *testing.T) {
func TestDisableRailgun(t *testing.T) {
setup()
defer teardown()

Expand Down
4 changes: 2 additions & 2 deletions universal_ssl.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type universalSSLSettingResponse struct {
Result UniversalSSLSetting `json:"result"`
}

// UniversalSSLVerificationDetails represents a universal ssl verifcation's properties.
// UniversalSSLVerificationDetails represents a universal ssl verification's properties.
type UniversalSSLVerificationDetails struct {
CertificateStatus string `json:"certificate_status"`
VerificationType string `json:"verification_type"`
Expand Down Expand Up @@ -54,7 +54,7 @@ func (api *API) UniversalSSLSettingDetails(zoneID string) (UniversalSSLSetting,
return r.Result, nil
}

// EditUniversalSSLSetting edits the uniersal ssl setting for a zone
// EditUniversalSSLSetting edits the universal ssl setting for a zone
//
// API reference: https://api.cloudflare.com/#universal-ssl-settings-for-a-zone-edit-universal-ssl-settings
func (api *API) EditUniversalSSLSetting(zoneID string, setting UniversalSSLSetting) (UniversalSSLSetting, error) {
Expand Down
2 changes: 1 addition & 1 deletion virtualdns.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type VirtualDNS struct {
ModifiedOn string `json:"modified_on"`
}

// VirtualDNSAnalyticsMetrics respresents a group of aggregated Virtual DNS metrics.
// VirtualDNSAnalyticsMetrics represents a group of aggregated Virtual DNS metrics.
type VirtualDNSAnalyticsMetrics struct {
QueryCount *int64 `json:"queryCount"`
UncachedCount *int64 `json:"uncachedCount"`
Expand Down
2 changes: 1 addition & 1 deletion workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ func getRouteEndpoint(api *API, route WorkerRoute) (string, error) {
return "", errors.New("Only `Script` or `Enabled` may be specified for a WorkerRoute, not both")
}

// For backwards-compatability, fallback to the deprecated filter
// For backwards-compatibility, fallback to the deprecated filter
// endpoint if Enabled == true
// https://api.cloudflare.com/#worker-filters-deprecated--properties
if route.Enabled == true {
Expand Down

0 comments on commit 2e38571

Please sign in to comment.