From 83165fe46614525d6311b19d813c249e9f128570 Mon Sep 17 00:00:00 2001 From: fieldinrain Date: Tue, 5 Mar 2019 19:08:10 +0900 Subject: [PATCH] fix parameter name --- src/ch06-01-defining-an-enum.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch06-01-defining-an-enum.md b/src/ch06-01-defining-an-enum.md index 45317a0a2c..9a56af7372 100644 --- a/src/ch06-01-defining-an-enum.md +++ b/src/ch06-01-defining-an-enum.md @@ -53,7 +53,7 @@ both values `IpAddrKind::V4` and `IpAddrKind::V6` are of the same type: # V6, # } # -fn route(ip_type: IpAddrKind) { } +fn route(ip_kind: IpAddrKind) { } ``` And we can call this function with either variant: @@ -64,7 +64,7 @@ And we can call this function with either variant: # V6, # } # -# fn route(ip_type: IpAddrKind) { } +# fn route(ip_kind: IpAddrKind) { } # route(IpAddrKind::V4); route(IpAddrKind::V6);