lang: Misc fixes for typos and grammar

This commit is contained in:
James Shubin
2018-02-28 00:35:22 -05:00
parent 3ad7097c8a
commit a5c3db6303
7 changed files with 13 additions and 13 deletions

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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

View File

@@ -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 {

View File

@@ -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.

View File

@@ -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