Skip to content

Commit 506ce62

Browse files
Merge pull request #1845 from fieldinrain/fix_parameter_name
change the parameter name from `type` to `kind`
2 parents 9cffbea + 83165fe commit 506ce62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ch06-01-defining-an-enum.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ both values `IpAddrKind::V4` and `IpAddrKind::V6` are of the same type:
5353
# V6,
5454
# }
5555
#
56-
fn route(ip_type: IpAddrKind) { }
56+
fn route(ip_kind: IpAddrKind) { }
5757
```
5858

5959
And we can call this function with either variant:
@@ -64,7 +64,7 @@ And we can call this function with either variant:
6464
# V6,
6565
# }
6666
#
67-
# fn route(ip_type: IpAddrKind) { }
67+
# fn route(ip_kind: IpAddrKind) { }
6868
#
6969
route(IpAddrKind::V4);
7070
route(IpAddrKind::V6);

0 commit comments

Comments
 (0)