From 1a990407c7429ce05b8e55b0a98839ece5c560d5 Mon Sep 17 00:00:00 2001 From: yuyi Date: Mon, 18 May 2020 01:24:04 +0800 Subject: [PATCH] doc: fix minor typo --- doc/docs.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/docs.md b/doc/docs.md index f24ad62d8a..fc945aee63 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -354,7 +354,7 @@ fn main() { } ``` -Modules can be imported using keyword `import`. When using types, functions, and constants from other modules, the full path must be specified. In the example above, `name := input()` wouldn't work. That means that it's always clear from which module a function is called +Modules can be imported using keyword `import`. When using types, functions, and constants from other modules, the full path must be specified. In the example above, `name := input()` wouldn't work. That means that it's always clear from which module a function is called. ## Arrays @@ -667,7 +667,7 @@ struct Foo { } ``` -All struct fields are zeroed by default during the creation of the struct. Array and map fields are allocated. +All struct fields are zeroed by default during the creation of the struct. Array and map fields are allocated. It's also possible to define custom default values.