From 4aa8b91c934b7a41294ace30c7f9388956f69c3d Mon Sep 17 00:00:00 2001 From: David Wickes Date: Sun, 20 Nov 2016 00:55:36 +0000 Subject: [PATCH] Small typo `IPAddr` to `IpAddr` Enjoying my readthrough :D --- src/ch06-00-enums.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch06-00-enums.md b/src/ch06-00-enums.md index dd6531de3..741eb5f6a 100644 --- a/src/ch06-00-enums.md +++ b/src/ch06-00-enums.md @@ -169,7 +169,7 @@ Listing 6-1: Storing the data and type of an IP address using a `struct` -Here, we've defined a struct `IPAddr` that has two fields: a `kind` field that +Here, we've defined a struct `IpAddr` that has two fields: a `kind` field that is of type `IpAddrKind` (the enum we defined previously), and an `address` field of type `String`. We have two instances of this struct. The first, `home`, has the value `IpAddrKind::V4` as its `kind`, with associated address