Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix misspelled words #402

Merged
merged 1 commit into from
Sep 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/fitactivity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A program to handle FIT files based on provided command:

1. **combine**: combine multiple activities into one continous activity.
1. **combine**: combine multiple activities into one continuous activity.
1. **conceal**: conceal first or last x meters GPS positions for privacy.
1. **reduce**: reduce the size of record messages, available methods:
- Based on GPS points using RDP [Ramer-Douglas-Peucker]
Expand Down Expand Up @@ -157,7 +157,7 @@ Usage:
fitactivity [command]

Available Commands:
combine combine multiple activities into one continous activity
combine combine multiple activities into one continuous activity
conceal conceal first or last x meters GPS positions for privacy
reduce reduce the size of record messages, available methods:
1. Based on GPS points using RDP [Ramer-Douglas-Peucker]
Expand All @@ -182,7 +182,7 @@ Output:

```sh
About:
combine multiple activities into one continous activity
combine multiple activities into one continuous activity

Usage:
fitactivity combine [subcommands] [flags] [files]
Expand Down
2 changes: 1 addition & 1 deletion cmd/fitactivity/combiner/combiner.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const (
errSportMismatch = errorString("sport mismatch")
)

// Combine combines multiple FIT activities into one continous activity.
// Combine combines multiple FIT activities into one continuous activity.
func Combine(fits []*proto.FIT) (result *proto.FIT, err error) {
for i := 0; i < len(fits); i++ {
if len(fits[i].Messages) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion cmd/fitactivity/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var (
)

const (
combineDesc = "combine multiple activities into one continous activity"
combineDesc = "combine multiple activities into one continuous activity"
concealDesc = "conceal first or last x meters GPS positions for privacy"
reduceDesc = `reduce the size of record messages, available methods:
1. Based on GPS points using RDP [Ramer-Douglas-Peucker]
Expand Down
6 changes: 3 additions & 3 deletions cmd/fitactivity/reducer/reducer.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func reduceByRDP(fit *proto.FIT, epsilon float64) error {
return nil
}

// findFragments finds ommited records based on RDP result and returning the index as fragments.
// findFragments finds omitted records based on RDP result and returning the index as fragments.
func findFragments(recordIndexes []int, points []rdp.Point) (fragments []int) {
var i, j int
// Reslicing is safe as index will always move forward
Expand Down Expand Up @@ -202,7 +202,7 @@ func reduceByDistanceInterval(fit *proto.FIT, threshold uint32) error {
if d != basetype.Uint32Invalid {
last = d
}
valid++ // Perserve first record
valid++ // Preserve first record
continue
}
if d == basetype.Uint32Invalid {
Expand Down Expand Up @@ -237,7 +237,7 @@ func reduceByTimeInterval(fit *proto.FIT, threshold uint32) error {
if t != basetype.Uint32Invalid {
last = t
}
valid++ // Perserve first record
valid++ // Preserve first record
continue
}
if t == basetype.Uint32Invalid {
Expand Down