misc: Fix typos and spelling errors

This commit is contained in:
Edward Toroshchyn
2025-02-24 15:59:00 +01:00
parent 1f90de31e7
commit c25a2a257b
40 changed files with 62 additions and 62 deletions

View File

@@ -3916,7 +3916,7 @@ func (obj *StmtProg) SetScope(scope *interfaces.Scope) error {
// Track all the bind statements, functions, and classes. This is used
// for duplicate checking. These might appear out-of-order as code, but
// are iterated in the topoligically sorted node order. When we collect
// are iterated in the topologically sorted node order. When we collect
// all the functions, we group by name (if polyfunc is ok) and we also
// do something similar for classes.
// TODO: if we ever allow poly classes, then group in lists by name
@@ -4494,7 +4494,7 @@ func (obj *StmtFunc) TypeCheck() ([]*interfaces.UnificationInvariant, error) {
invariants = append(invariants, invar)
// I think the invariants should come in from ExprCall instead, because
// ExprCall operates on an instatiated copy of the contained ExprFunc
// ExprCall operates on an instantiated copy of the contained ExprFunc
// which will have different pointers than what is seen here.
// nope!
@@ -7398,7 +7398,7 @@ func (obj *ExprFunc) Copy() (interfaces.Expr, error) {
// copied = true // XXX: add this if anyone isn't static?
}
// We wan't to allow static functions, although we have to be careful...
// We want to allow static functions, although we have to be careful...
// Doing this for static functions causes us to hit a strange case in
// the SetScope function for ExprCall... Investigate if we find a bug...
if !copied { // it's static

View File

@@ -40,7 +40,7 @@ timezone {{ .timezone }} --isUtc
# security
#
{{ if .password -}}
# password can be crypted with:
# password can be encrypted with:
# python3 -c 'import crypt; print(crypt.crypt("password", crypt.mksalt(crypt.METHOD_SHA512)))'
# or
# openssl passwd -6 -salt <YOUR_SALT> (salt can be omitted to generate one)

View File

@@ -562,7 +562,7 @@ class base:host($name, $config) {
#} else {
# "" + get_value("network") # XXX: implement some sort of lookup function
#}
#$ip = $config->ip || magic.pool($ns, [1,2,3,4], $name) # XXX: if $ns is "", then don't allocate. Otherwise get from list. Re-use based on $name hash.
#$ip = $config->ip || magic.pool($ns, [1,2,3,4], $name) # XXX: if $ns is "", then don't allocate. Otherwise get from list. Reuse based on $name hash.
$bios = $config->bios || false
$password = $config->password || "" # empty means disabled
panic(len($password) != 0 and len($password) != 106) # length of salted password

View File

@@ -806,7 +806,7 @@ func (obj *Engine) process(ctx context.Context) (reterr error) {
// Check each leaf and make sure they're all ready to send, for us to
// send anything to ag channel. In addition, we need at least one send
// message from any of the valid isLeaf nodes. Since this only runs if
// everyone is loaded, we just need to check for activty leaf nodes.
// everyone is loaded, we just need to check for activity leaf nodes.
obj.stateMutex.Lock()
for node := range obj.activity {
if obj.leafSend {

View File

@@ -53,7 +53,7 @@ type function struct {
GolangPackage *golangPackage `yaml:"golangPackage"`
// GolangFunc is the name of the function in golang.
GolangFunc string `yaml:"golangFunc"`
// Errorful indicates wether the golang function can return an error
// Errorful indicates whether the golang function can return an error
// as second argument.
Errorful bool `yaml:"errorful"`
// Args is the list of the arguments of the function.

View File

@@ -1366,7 +1366,7 @@ type_struct_field:
IDENTIFIER type
{
posLast(yylex, yyDollar) // our pos
$$.arg = &interfaces.Arg{ // re-use the Arg struct
$$.arg = &interfaces.Arg{ // reuse the Arg struct
Name: $1.str,
Type: $2.typ,
}