From ecb294ad0ba17e7fd4d21716dab161909aaa40ab Mon Sep 17 00:00:00 2001
From: garhve
Date: Thu, 12 Jan 2023 19:17:57 +0800
Subject: fix table error
---
content/post/rust basic.md | 4 ++--
public/post/rust-basic/index.html | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/content/post/rust basic.md b/content/post/rust basic.md
index 8e765b9..cef57e0 100644
--- a/content/post/rust basic.md
+++ b/content/post/rust basic.md
@@ -16,8 +16,8 @@ There are a bunch of built-in types we can work with: *scalar types* and *compou
Those scalar types are just alike as C language.
| scalar types | rust | c |
| ------------- |------------- | ------- |
-| integer | i(u)8/i16/i32/i64 | (unsigned) char/short/int/long |
-| float | f32/f64 | 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 |
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.
Those scalar types are just alike as C language.
| scalar types | rust | c |
| ------------- |------------- | ------- |
-| integer | i(u)8/i16/i32/i64 | (unsigned) char/short/int/long |
-| float | f32/f64 | 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 |
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