From 9b4dce0e87fc1c682c91a2cd1b5f09aa313ab842 Mon Sep 17 00:00:00 2001 From: Inanc Gumus Date: Fri, 9 Nov 2018 13:34:51 +0300 Subject: [PATCH] fix: wordings in go type system/questions --- .../questions/01-questions-predeclared-types.md | 2 +- 09-go-type-system/questions/02-questions-defined-types.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/09-go-type-system/questions/01-questions-predeclared-types.md b/09-go-type-system/questions/01-questions-predeclared-types.md index 324f27a..79e9468 100644 --- a/09-go-type-system/questions/01-questions-predeclared-types.md +++ b/09-go-type-system/questions/01-questions-predeclared-types.md @@ -37,7 +37,7 @@ ## What's the output of following code? ```go -fmt.Printf("%08b = %d", 2) +fmt.Printf("%08b = %d", 2, 2) ``` 1. 00000001 2. 00000010 *CORRECT* diff --git a/09-go-type-system/questions/02-questions-defined-types.md b/09-go-type-system/questions/02-questions-defined-types.md index 2263579..795f122 100644 --- a/09-go-type-system/questions/02-questions-defined-types.md +++ b/09-go-type-system/questions/02-questions-defined-types.md @@ -8,7 +8,7 @@ > -## Let's suppose that you've declared the following defined type. Which property below that the new type doesn't get from its underlying type? +## Let's suppose that you've declared the following defined type. Which property below the new type doesn't get from its underlying type? ```go // For example, let's say that you've defined a new type @@ -102,9 +102,9 @@ type ( > **1:** That's right. Go's type system is flat. So, the defined type's underlying type is a type with a real structure. int64 is not just a name, it has its own structure, it's a predeclared type. > -> **2:** Duration is just a new type name. It doesn't its own structure. +> **2:** Duration is just a new type name. It doesn't have its own structure. > -> **3:** Century is just a new type name. It doesn't its own structure. +> **3:** Century is just a new type name. It doesn't have its own structure. >