Skip to content

Commit

Permalink
Merge pull request #1845 from fieldinrain/fix_parameter_name
Browse files Browse the repository at this point in the history
change the parameter name from `type` to `kind`
  • Loading branch information
carols10cents authored Mar 8, 2019
2 parents 9cffbea + 83165fe commit 506ce62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ch06-01-defining-an-enum.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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);
Expand Down

0 comments on commit 506ce62

Please sign in to comment.