lang: Misc fixes for typos and grammar
This commit is contained in:
@@ -98,8 +98,8 @@ func (obj *ContainsPolyFunc) Polymorphisms(partialType *types.Type, partialValue
|
|||||||
return []*types.Type{typFunc}, nil // solved!
|
return []*types.Type{typFunc}, nil // solved!
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build is run to turn the polymorphic, undeterminted function, into the
|
// Build is run to turn the polymorphic, undetermined function, into the
|
||||||
// specific statically type version. It is usually run after Unify completes,
|
// 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
|
// 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
|
// used. This function is idempotent, as long as the arg isn't changed between
|
||||||
// runs.
|
// runs.
|
||||||
|
|||||||
@@ -163,8 +163,8 @@ func (obj *SchedulePolyFunc) Polymorphisms(partialType *types.Type, partialValue
|
|||||||
return []*types.Type{typFunc}, nil // solved!
|
return []*types.Type{typFunc}, nil // solved!
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build is run to turn the polymorphic, undeterminted function, into the
|
// Build is run to turn the polymorphic, undetermined function, into the
|
||||||
// specific statically type version. It is usually run after Unify completes,
|
// 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
|
// 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
|
// used. This function is idempotent, as long as the arg isn't changed between
|
||||||
// runs.
|
// runs.
|
||||||
|
|||||||
@@ -146,8 +146,8 @@ func (obj *MapLookupPolyFunc) Polymorphisms(partialType *types.Type, partialValu
|
|||||||
return []*types.Type{typFunc}, nil // solved!
|
return []*types.Type{typFunc}, nil // solved!
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build is run to turn the polymorphic, undeterminted function, into the
|
// Build is run to turn the polymorphic, undetermined function, into the
|
||||||
// specific statically type version. It is usually run after Unify completes,
|
// 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
|
// 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
|
// used. This function is idempotent, as long as the arg isn't changed between
|
||||||
// runs.
|
// runs.
|
||||||
|
|||||||
@@ -504,8 +504,8 @@ func (obj *OperatorPolyFunc) Polymorphisms(partialType *types.Type, partialValue
|
|||||||
return results, nil
|
return results, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build is run to turn the polymorphic, undeterminted function, into the
|
// Build is run to turn the polymorphic, undetermined function, into the
|
||||||
// specific statically type version. It is usually run after Unify completes,
|
// 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
|
// 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
|
// 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
|
// runs. It typically re-labels the input arg names to match what is actually
|
||||||
|
|||||||
@@ -101,8 +101,8 @@ func (obj *simplePolyFunc) Polymorphisms(partialType *types.Type, partialValues
|
|||||||
return typs, nil
|
return typs, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build is run to turn the polymorphic, undeterminted function, into the
|
// Build is run to turn the polymorphic, undetermined function, into the
|
||||||
// specific statically type version. It is usually run after Unify completes,
|
// 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
|
// and must be run before Info() and any of the other Func interface methods are
|
||||||
// used.
|
// used.
|
||||||
func (obj *simplePolyFunc) Build(typ *types.Type) error {
|
func (obj *simplePolyFunc) Build(typ *types.Type) error {
|
||||||
|
|||||||
@@ -135,8 +135,8 @@ func (obj *StructLookupPolyFunc) Polymorphisms(partialType *types.Type, partialV
|
|||||||
return []*types.Type{typFunc}, nil
|
return []*types.Type{typFunc}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build is run to turn the polymorphic, undeterminted function, into the
|
// Build is run to turn the polymorphic, undetermined function, into the
|
||||||
// specific statically type version. It is usually run after Unify completes,
|
// 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
|
// 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
|
// used. This function is idempotent, as long as the arg isn't changed between
|
||||||
// runs.
|
// runs.
|
||||||
|
|||||||
@@ -299,7 +299,7 @@ list_element:
|
|||||||
}
|
}
|
||||||
;
|
;
|
||||||
map:
|
map:
|
||||||
// `{"hello" => "there", "world" => "big", }`
|
// `{"hello" => "there", "world" => "big",}`
|
||||||
OPEN_CURLY map_kvs CLOSE_CURLY
|
OPEN_CURLY map_kvs CLOSE_CURLY
|
||||||
{
|
{
|
||||||
posLast(yylex, yyDollar) // our pos
|
posLast(yylex, yyDollar) // our pos
|
||||||
|
|||||||
Reference in New Issue
Block a user