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

Fix some typos. #406

Merged
merged 1 commit into from
Mar 28, 2022
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
2 changes: 1 addition & 1 deletion doc/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -3197,7 +3197,7 @@ specified base, decimal by default.
If `base` is zero, x is interpreted like an integer literal, the base
being inferred from an optional base prefix such as `0b`, `0o`, or
`0x` preceding the first digit.
When the `base` is provided explictly, a matching base prefix is
When the `base` is provided explicitly, a matching base prefix is
also permitted, and has no effect.
Irrespective of base, the string may start with an optional `+` or `-`
sign indicating the sign of the result.
Expand Down
2 changes: 1 addition & 1 deletion starlarkjson/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ import (
"go.starlark.net/lib/json"
)

// Module is an alias of json.Module for backwards import compatibilty
// Module is an alias of json.Module for backwards import compatibility
var Module = json.Module
2 changes: 1 addition & 1 deletion syntax/scan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ pass`, "pass newline pass EOF"}, // consecutive newlines are consolidated
if err != nil {
got = err.(Error).Error()
}
// Prefix match allows us to truncate errors in expecations.
// Prefix match allows us to truncate errors in expectations.
// Success cases all end in EOF.
if !strings.HasPrefix(got, test.want) {
t.Errorf("scan `%s` = [%s], want [%s]", test.input, got, test.want)
Expand Down