var s string
switch {
case t == nil:
- fallthrough // should not happend but be cautious
+ fallthrough // should not happen but be cautious
case t == Typ[Invalid]:
s = "<T>"
case isUntyped(t):
// Instantiating such a type would lead to an infinite sequence of instantiations.
// In general, we need "type flow analysis" to recognize those cases.
// Example: type A[T any] struct{ x A[*T] } (issue #48951)
- // In this algorithm we always only consider the orginal, uninstantiated type.
+ // In this algorithm we always only consider the original, uninstantiated type.
// This won't recognize some invalid cases with parameterized types, but it
// will terminate.
t = t.orig
"~int ~string ~int ~string",
"~int myInt ~int ∅",
- // union is symmetric, but the result order isn't - repeat symmetric cases explictly
+ // union is symmetric, but the result order isn't - repeat symmetric cases explicitly
"𝓤 ∅ 𝓤 ∅",
"int ∅ int ∅",
"~int ∅ ~int ∅",
t.Fatal(err)
}
if !matched {
- t.Errorf("Failed to detect long foward BC fixup in (%v):%s\n", platenv, out)
+ t.Errorf("Failed to detect long forward BC fixup in (%v):%s\n", platenv, out)
}
matched, err = regexp.MatchString(strings.Join(test.backpattern, "\n\t*"), string(out))
if err != nil {
var s string
switch {
case t == nil:
- fallthrough // should not happend but be cautious
+ fallthrough // should not happen but be cautious
case t == Typ[Invalid]:
s = "<T>"
case isUntyped(t):
// Instantiating such a type would lead to an infinite sequence of instantiations.
// In general, we need "type flow analysis" to recognize those cases.
// Example: type A[T any] struct{ x A[*T] } (issue #48951)
- // In this algorithm we always only consider the orginal, uninstantiated type.
+ // In this algorithm we always only consider the original, uninstantiated type.
// This won't recognize some invalid cases with parameterized types, but it
// will terminate.
t = t.orig
"~int ~string ~int ~string",
"~int myInt ~int ∅",
- // union is symmetric, but the result order isn't - repeat symmetric cases explictly
+ // union is symmetric, but the result order isn't - repeat symmetric cases explicitly
"𝓤 ∅ 𝓤 ∅",
"int ∅ int ∅",
"~int ∅ ~int ∅",
// flakiness in the coverage counters). In order to prevent adding
// duplicate entries to the corpus (and re-writing the file on
// disk), skip it if the on disk file already exists.
- // TOOD(roland): this check is limited in that it will only be
+ // TODO(roland): this check is limited in that it will only be
// applied if we are using the CacheDir. Another option would be
// to iterate through the corpus and check if it is already present,
// which would catch cases where we are not caching entries.
// the corresponding *T method instead. The only *F methods that are allowed in
// the (*F).Fuzz function are (*F).Failed and (*F).Name.
//
-// This function sould be fast and deterministic, and its behavior should not
+// This function should be fast and deterministic, and its behavior should not
// depend on shared state. No mutatable input arguments, or pointers to them,
// should be retained between executions of the fuzz function, as the memory
// backing them may be mutated during a subsequent invocation. ff must not