diff --git a/gfm/sec6.md b/gfm/sec6.md index 5ad729d..68226ba 100644 --- a/gfm/sec6.md +++ b/gfm/sec6.md @@ -159,7 +159,7 @@ char *s; s = g_new (char, 10); /* s points an array of char. The size of the array is 10. */ -struct tuple (int x, int y) *t; +struct tuple {int x, y;} *t; t = g_new (struct tuple, 5); /* t points an array of struct tuple. */ /* The size of the array is 5. */ diff --git a/src/sec6.src.md b/src/sec6.src.md index 97329d9..a3609de 100644 --- a/src/sec6.src.md +++ b/src/sec6.src.md @@ -157,7 +157,7 @@ char *s; s = g_new (char, 10); /* s points an array of char. The size of the array is 10. */ -struct tuple (int x, int y) *t; +struct tuple {int x, y;} *t; t = g_new (struct tuple, 5); /* t points an array of struct tuple. */ /* The size of the array is 5. */