lang: unification: Fix up small typos in example code

This commit is contained in:
James Shubin
2019-01-20 04:22:05 -05:00
parent 9d28ff9b23
commit a1fbe152bb

View File

@@ -517,8 +517,8 @@ func TestUnification1(t *testing.T) {
} }
// XXX: add these tests when we fix the bug! // XXX: add these tests when we fix the bug!
//{ //{
// //test "t1" {
// //import "fmt" // //import "fmt"
// //test "t1" {
// // stringptr => fmt.printf("hello %s and %s", "one"), # bad // // stringptr => fmt.printf("hello %s and %s", "one"), # bad
// //} // //}
// expr := &ExprCall{ // expr := &ExprCall{
@@ -556,8 +556,8 @@ func TestUnification1(t *testing.T) {
// }) // })
//} //}
//{ //{
// //test "t1" {
// //import "fmt" // //import "fmt"
// //test "t1" {
// // stringptr => fmt.printf("hello %s and %s", "one", "two", "three"), # bad // // stringptr => fmt.printf("hello %s and %s", "one", "two", "three"), # bad
// //} // //}
// expr := &ExprCall{ // expr := &ExprCall{
@@ -601,8 +601,8 @@ func TestUnification1(t *testing.T) {
// }) // })
//} //}
{ {
//test "t1" {
//import "fmt" //import "fmt"
//test "t1" {
// stringptr => fmt.printf("hello %s and %s", "one", "two"), // stringptr => fmt.printf("hello %s and %s", "one", "two"),
//} //}
expr := &ExprCall{ expr := &ExprCall{