From 82a5493c360cc07a5c0846b83805d271d1544ea4 Mon Sep 17 00:00:00 2001 From: garhve Date: Thu, 12 Jan 2023 19:19:30 +0800 Subject: fix typo --- public/post/rust-basic/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'public') diff --git a/public/post/rust-basic/index.html b/public/post/rust-basic/index.html index 45bebfc..e7d9d0a 100644 --- a/public/post/rust-basic/index.html +++ b/public/post/rust-basic/index.html @@ -58,13 +58,13 @@ I will use C to compare with since I familiar it.

There are a bunch of built-in types we can work with: scalar types and compound types. -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 | -| boolean | true/false | True/False (non-zero/zero) | -| character | char | char |

+Those scalar types are just alike as C language.

+ + + + + +
scalar typesrustc
integeri(u)8/i16/i32(default)/i64(unsigned) char/short/int/long
floatf32/f64(default)float/double
booleantrue/falseTrue/False (non-zero/zero)
charactercharchar

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.

-- cgit v1.2.3-70-g09d2
compound typerustc
structsamesame