Skip to content

Commit 844361c

Browse files
authored
fix type in example (#832)
Because the below explanation says that function type is `fn(u32) -> u32`
1 parent 76d7b6a commit 844361c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ty.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Here is one more example:
9292
```rust
9393
mod a {
9494
type X = u32;
95-
pub fn foo(x: X) -> i32 { 22 }
95+
pub fn foo(x: X) -> u32 { 22 }
9696
}
9797
mod b {
9898
type X = i32;

0 commit comments

Comments
 (0)