From 35a41edac7ace4bbd92afc3d154ac6154beaa153 Mon Sep 17 00:00:00 2001 From: KnBrBz <36660977+KnBrBz@users.noreply.github.com> Date: Tue, 24 May 2022 20:00:14 +0300 Subject: [PATCH] typo fix, first example struct --- content/docs/language/struct_types/_index.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/docs/language/struct_types/_index.md b/content/docs/language/struct_types/_index.md index 3a329d2..32e4b14 100644 --- a/content/docs/language/struct_types/_index.md +++ b/content/docs/language/struct_types/_index.md @@ -9,6 +9,12 @@ weight: 2 Declare a variable of type `example` set to its zero value. ```go +type example struct { + flag bool + pi float32 + counter int64 +} + var e1 example ``` @@ -47,7 +53,7 @@ Example: type example struct { counter int64 pi float32 - float bool + flag bool } ```