Skip to content

Commit

Permalink
fix type in example
Browse files Browse the repository at this point in the history
Because the below explanation says that function type is `fn(u32) -> u32`
  • Loading branch information
95th committed Aug 21, 2020
1 parent 76d7b6a commit 22d12ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ty.md
Expand Up @@ -92,7 +92,7 @@ Here is one more example:
```rust
mod a {
type X = u32;
pub fn foo(x: X) -> i32 { 22 }
pub fn foo(x: X) -> u32 { 22 }
}
mod b {
type X = i32;
Expand Down

0 comments on commit 22d12ea

Please sign in to comment.