From a5c3db6303296f236ec6812773d48f77dc67730d Mon Sep 17 00:00:00 2001 From: James Shubin Date: Wed, 28 Feb 2018 00:35:22 -0500 Subject: [PATCH] lang: Misc fixes for typos and grammar --- lang/funcs/contains_polyfunc.go | 4 ++-- lang/funcs/core/schedule_polyfunc.go | 4 ++-- lang/funcs/maplookup_polyfunc.go | 4 ++-- lang/funcs/operator_polyfunc.go | 4 ++-- lang/funcs/simplepoly/simplepoly.go | 4 ++-- lang/funcs/structlookup_polyfunc.go | 4 ++-- lang/parser.y | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lang/funcs/contains_polyfunc.go b/lang/funcs/contains_polyfunc.go index a68b4324..6c88dc56 100644 --- a/lang/funcs/contains_polyfunc.go +++ b/lang/funcs/contains_polyfunc.go @@ -98,8 +98,8 @@ func (obj *ContainsPolyFunc) Polymorphisms(partialType *types.Type, partialValue return []*types.Type{typFunc}, nil // solved! } -// Build is run to turn the polymorphic, undeterminted function, into the -// specific statically type version. It is usually run after Unify completes, +// Build is run to turn the polymorphic, undetermined function, into the +// specific statically typed version. It is usually run after Unify completes, // and must be run before Info() and any of the other Func interface methods are // used. This function is idempotent, as long as the arg isn't changed between // runs. diff --git a/lang/funcs/core/schedule_polyfunc.go b/lang/funcs/core/schedule_polyfunc.go index e35f1622..ea595cbf 100644 --- a/lang/funcs/core/schedule_polyfunc.go +++ b/lang/funcs/core/schedule_polyfunc.go @@ -163,8 +163,8 @@ func (obj *SchedulePolyFunc) Polymorphisms(partialType *types.Type, partialValue return []*types.Type{typFunc}, nil // solved! } -// Build is run to turn the polymorphic, undeterminted function, into the -// specific statically type version. It is usually run after Unify completes, +// Build is run to turn the polymorphic, undetermined function, into the +// specific statically typed version. It is usually run after Unify completes, // and must be run before Info() and any of the other Func interface methods are // used. This function is idempotent, as long as the arg isn't changed between // runs. diff --git a/lang/funcs/maplookup_polyfunc.go b/lang/funcs/maplookup_polyfunc.go index c188ef94..8eb6fbee 100644 --- a/lang/funcs/maplookup_polyfunc.go +++ b/lang/funcs/maplookup_polyfunc.go @@ -146,8 +146,8 @@ func (obj *MapLookupPolyFunc) Polymorphisms(partialType *types.Type, partialValu return []*types.Type{typFunc}, nil // solved! } -// Build is run to turn the polymorphic, undeterminted function, into the -// specific statically type version. It is usually run after Unify completes, +// Build is run to turn the polymorphic, undetermined function, into the +// specific statically typed version. It is usually run after Unify completes, // and must be run before Info() and any of the other Func interface methods are // used. This function is idempotent, as long as the arg isn't changed between // runs. diff --git a/lang/funcs/operator_polyfunc.go b/lang/funcs/operator_polyfunc.go index 29724968..e296567d 100644 --- a/lang/funcs/operator_polyfunc.go +++ b/lang/funcs/operator_polyfunc.go @@ -504,8 +504,8 @@ func (obj *OperatorPolyFunc) Polymorphisms(partialType *types.Type, partialValue return results, nil } -// Build is run to turn the polymorphic, undeterminted function, into the -// specific statically type version. It is usually run after Unify completes, +// Build is run to turn the polymorphic, undetermined function, into the +// specific statically typed version. It is usually run after Unify completes, // and must be run before Info() and any of the other Func interface methods are // used. This function is idempotent, as long as the arg isn't changed between // runs. It typically re-labels the input arg names to match what is actually diff --git a/lang/funcs/simplepoly/simplepoly.go b/lang/funcs/simplepoly/simplepoly.go index 9f1ebde3..87211403 100644 --- a/lang/funcs/simplepoly/simplepoly.go +++ b/lang/funcs/simplepoly/simplepoly.go @@ -101,8 +101,8 @@ func (obj *simplePolyFunc) Polymorphisms(partialType *types.Type, partialValues return typs, nil } -// Build is run to turn the polymorphic, undeterminted function, into the -// specific statically type version. It is usually run after Unify completes, +// Build is run to turn the polymorphic, undetermined function, into the +// specific statically typed version. It is usually run after Unify completes, // and must be run before Info() and any of the other Func interface methods are // used. func (obj *simplePolyFunc) Build(typ *types.Type) error { diff --git a/lang/funcs/structlookup_polyfunc.go b/lang/funcs/structlookup_polyfunc.go index 59e4e965..38883f5d 100644 --- a/lang/funcs/structlookup_polyfunc.go +++ b/lang/funcs/structlookup_polyfunc.go @@ -135,8 +135,8 @@ func (obj *StructLookupPolyFunc) Polymorphisms(partialType *types.Type, partialV return []*types.Type{typFunc}, nil } -// Build is run to turn the polymorphic, undeterminted function, into the -// specific statically type version. It is usually run after Unify completes, +// Build is run to turn the polymorphic, undetermined function, into the +// specific statically typed version. It is usually run after Unify completes, // and must be run before Info() and any of the other Func interface methods are // used. This function is idempotent, as long as the arg isn't changed between // runs. diff --git a/lang/parser.y b/lang/parser.y index 5f79f95c..34729e56 100644 --- a/lang/parser.y +++ b/lang/parser.y @@ -299,7 +299,7 @@ list_element: } ; map: - // `{"hello" => "there", "world" => "big", }` + // `{"hello" => "there", "world" => "big",}` OPEN_CURLY map_kvs CLOSE_CURLY { posLast(yylex, yyDollar) // our pos