From d1b926947e1a497ea6350bb17394cc840cf391fe Mon Sep 17 00:00:00 2001 From: Florian Larysch Date: Tue, 18 Oct 2016 09:18:02 +0200 Subject: [PATCH] fix some typos in chapter 6 --- src/ch06-00-enums.md | 2 +- src/ch06-01-option.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch06-00-enums.md b/src/ch06-00-enums.md index 5f0727ed7..dd6531de3 100644 --- a/src/ch06-00-enums.md +++ b/src/ch06-00-enums.md @@ -84,7 +84,7 @@ suggestions in a totally different direction! /Carol --> An `enum` definition is similar to a `struct` definition: it defines a new type and a template of what instances of that new type will be like. When you want to use a struct, you create an instance of the struct. When you want to use an -enum, you use an instannce of the enum that is one of the variants the enum +enum, you use an instance of the enum that is one of the variants the enum allows. diff --git a/src/ch06-01-option.md b/src/ch06-01-option.md index 47d1a9787..357f5dd4a 100644 --- a/src/ch06-01-option.md +++ b/src/ch06-01-option.md @@ -1,6 +1,6 @@ ## The `Option` Enum and its Advantages Over Null Values -In the previous section, we looked at how the `IpAddr` enum let us use Rust's +In the previous section, we looked at how the `IpAddr` enum lets us use Rust's type system to encode more information than just the data into our program. This section is a case study of `Option`, which is another enum defined by the standard library. The `Option` type is used in many places because it encodes