Skip to content

Commit ec6b165

Browse files
Merge pull request #21 from rongyi/patch-1
Update ch03-built-in-types.md
2 parents daeecad + 18312b3 commit ec6b165

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

c-cpp-book/src/ch03-built-in-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn main() {
2828
```rust
2929
fn foo(x : u8) -> u32
3030
{
31-
return x * x;
31+
return x as u32 * x as u32;
3232
}
3333
```
3434
- Unused variables are prefixed with ```_``` to avoid compiler warnings

0 commit comments

Comments
 (0)