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 typos and styles #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The most useful to me are:

And these are pretty great too:

* [datasize](./datasize): Parse, format, and convert to differents units in bytes
* [datasize](./datasize): Parse, format, and convert to different units in bytes
* [dns](./dns): Implements a drop-in replacement for DNS, since Go's DNS on macOS doesn't always work
* [pipe](./pipe): Simplify error handling while keeping the original intent clear
* [plist](./plist): Parses macOS `*.plist` input data and formats them as JSON.
Expand Down
2 changes: 1 addition & 1 deletion covet/covet.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ type signedInteger interface {
~int | ~int64
}

// uintFromBoundedSignedInt converts i to a uint.
// uintFromBoundedSignedInt converts i to an uint.
// If i is outside 0 to [math.MaxUint32], then it is capped at those bounds.
func uintFromBoundedSignedInt[integer signedInteger](i integer) uint {
if i < 0 {
Expand Down
2 changes: 1 addition & 1 deletion covet/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func findReportableUncoveredFiles(coveredFiles []File, target, current float64)
})

var uncoveredFiles []File
// find minimum number of covered lines required to hit target
// find the minimum number of covered lines required to hit target
targetMissingLines := uint(0)
totalLines := uint(0)
for _, f := range coveredFiles {
Expand Down
2 changes: 1 addition & 1 deletion datasize/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# datasize <a href="https://johnstarich.com/go/datasize"><img src="https://img.shields.io/badge/gopages-reference-%235272B4" /></a>

Parse, format, and convert to differents units in bytes.
Parse, format, and convert to different units in bytes.

```go
import "github.com/johnstarich/go/datasize"
Expand Down
2 changes: 1 addition & 1 deletion datasize/size.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package datasize parses, formats, and converts to differents units in bytes.
// Package datasize parses, formats, and converts to different units in bytes.
package datasize

import (
Expand Down
2 changes: 1 addition & 1 deletion dns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ In my experience, it is common to disable CGO for macOS CI builds. However, ther
import _ "github.com/johnstarich/go/dns/init"
```

This resolver reads the system's full DNS configuration and attempts to find the a successful nameserver. First, the dialer reaches out to the default nameserver. If the response isn't fast enough, more nameservers are attempted simultaneously.
This resolver reads the system's full DNS configuration and attempts to find a successful nameserver. First, the dialer reaches out to the default nameserver. If the response isn't fast enough, more nameservers are attempted simultaneously.

On non-macOS builds a normal resolver is used, so this is safe to use for multi-platform builds.

Expand Down
2 changes: 1 addition & 1 deletion regext/extended.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Package regext enables extended regex, where spaces are ignored and inline comments are supported.
// Package regext enables extended regex, where spaces are ignored, and inline comments are supported.
package regext

import (
Expand Down
Loading