From 25a719b3640914b4ee6e2cbb95e7f25d2180f4d4 Mon Sep 17 00:00:00 2001 From: neodarz Date: Fri, 5 Apr 2019 11:15:33 +0200 Subject: Add more cheat --- cheat/.cheat/rust | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cheat/.cheat/rust b/cheat/.cheat/rust index dd52c21..a81bd7d 100644 --- a/cheat/.cheat/rust +++ b/cheat/.cheat/rust @@ -16,3 +16,15 @@ let spaces = spaces.len() Ne pas faire: let mut spaces = " "; spaces = spaces.len() + +# scalar types + +Un type scalaire representer une seul veleur. + +- Integer +- Integer Literals (Decimal/Hex/Octal/Binary/Byte(u8)) +- Floating-Point (Float) +- Numeric Operation (Pas un type mais mis dedans ds le livres...) +- Boolean `let t = true` ou `let f: bool = false` +- Character (`char` type specified with single quotes) +- String (`string` type specified with double quotes) -- cgit v1.2.1