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!
|
||||
}
|
||||
|
||||
// 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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user