summaryrefslogtreecommitdiff
path: root/content/post/rust basic.md
diff options
context:
space:
mode:
authorgarhve <git@garhve.com>2023-01-12 19:17:57 +0800
committergarhve <git@garhve.com>2023-01-12 19:17:57 +0800
commitecb294ad0ba17e7fd4d21716dab161909aaa40ab (patch)
treed7070a74c90eae38bbf7293fb895db3aa824550e /content/post/rust basic.md
parentd743c344988884c81e247a0ab9c2696912d8a1e3 (diff)
fix table error
Diffstat (limited to 'content/post/rust basic.md')
-rw-r--r--content/post/rust basic.md4
1 files changed, 2 insertions, 2 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<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 |