diff --git a/examples/structs/structs.go b/examples/structs/structs.go index 9f38700..d56c0aa 100644 --- a/examples/structs/structs.go +++ b/examples/structs/structs.go @@ -53,7 +53,8 @@ func main() { // If a struct type is only used for a single value, we don't // have to give it a name. The value can have an anonymous - // struct type. + // struct type. This technique is commonly used for + // [table-driven tests](testing-and-benchmarking). dog := struct { name string isGood bool diff --git a/examples/structs/structs.hash b/examples/structs/structs.hash index 9da9321..3721238 100644 --- a/examples/structs/structs.hash +++ b/examples/structs/structs.hash @@ -1,2 +1,2 @@ -2676ffa99a3a14bc99332fc498e5d658c7988612 -EzGgwrfM-yD +80344041b9268370bb6c73190afb1269e26f52fe +ex1J3oieEeo diff --git a/public/structs b/public/structs index 9c34077..40e92df 100644 --- a/public/structs +++ b/public/structs @@ -43,7 +43,7 @@ records.

- +
package main
 
@@ -229,7 +229,8 @@ pointers are automatically dereferenced.

If a struct type is only used for a single value, we don’t have to give it a name. The value can have an anonymous -struct type.

+struct type. This technique is commonly used for +table-driven tests.