fix type in example (#832)
Because the below explanation says that function type is `fn(u32) -> u32`
This commit is contained in:
parent
18a74597ac
commit
3c45557472
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue