diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/post/rust-basic/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/post/rust-basic/index.html b/public/post/rust-basic/index.html index 262aee3..45bebfc 100644 --- a/public/post/rust-basic/index.html +++ b/public/post/rust-basic/index.html @@ -61,8 +61,8 @@ I will use C to compare with since I familiar it.</p> Those scalar types are just alike as C language. | scalar types | rust | c | | ------------- |------------- | ------- | -| integer | i(u)8/i16/i32<default>/i64 | (unsigned) char/short/int/long | -| float | f32/f64<default> | float/double | +| integer | i(u)8/i16/i32(default)/i64 | (unsigned) char/short/int/long | +| float | f32/f64(default) | float/double | | boolean | true/false | True/False (non-zero/zero) | | character | char | char |</p> <p>The compound types are a bit different. rust provides many hands-on types where C type is not the same or needs to define explicitly.</p> |