From a8ff343e8a77261bac059ab63401e1b6b0cd6357 Mon Sep 17 00:00:00 2001 From: Toshio Sekiya Date: Wed, 13 Apr 2022 20:40:24 +0900 Subject: [PATCH] Bug fixed (sec6). --- gfm/sec6.md | 2 +- src/sec6.src.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. */