Skip to content

Commit

Permalink
typos in comments (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Dec 5, 2024
1 parent 80ad0aa commit 159bc9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func exprConstVal(e ast.Expr, info *types.Info) (constantValue, bool) {
}
}

// stripTypeConversions removing type conversions from the experession.
// stripTypeConversions removing type conversions from the expression.
func stripTypeConversions(e ast.Expr, info *types.Info) ast.Expr {
c, ok := e.(*ast.CallExpr)
if !ok {
Expand Down
2 changes: 1 addition & 1 deletion fact_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestEnumMembersFact(t *testing.T) {
}

// This test exists to prevent regressions where changes made to a fact type used
// by the Analyzer makes the type fail to gob-encode/decode. Particuarly:
// by the Analyzer makes the type fail to gob-encode/decode. Particularly:
//
// - gob values cannot seem to have nil pointers.
// - fields must be exported to survive the encode/decode.
Expand Down
2 changes: 1 addition & 1 deletion testdata/src/typealias/foo/foo.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "typealias/bar"

type T1 = bar.T2

// None of these constants can constitue T2's enum members
// None of these constants can constitute T2's enum members
// because they are not in the same package as the enum type T2.
const (
A = bar.A // matches bar.A by value; can be listed in switch case instead of bar.A
Expand Down

0 comments on commit 159bc9e

Please sign in to comment.