diff options
| author | Carlos Maiolino <[email protected]> | 2025-07-10 22:24:20 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-07-10 22:24:20 +0200 |
| commit | 869e68986aa8f69af6e7842260a68d1e5c6f796f (patch) | |
| tree | 63b6b5ffc3d19414233d4629a533c0d9bf3cbf72 /rust/kaboom.rs | |
| parent | 20834dcc57537cd95260a4a22f5d91a027adfd35 (diff) | |
Add a bunch of code
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'rust/kaboom.rs')
| -rw-r--r-- | rust/kaboom.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/kaboom.rs b/rust/kaboom.rs new file mode 100644 index 0000000..28c740d --- /dev/null +++ b/rust/kaboom.rs @@ -0,0 +1,9 @@ +fn main() { + + let s: String = String::from("Howdy partner"); + + let s: &str = &s; + let i: usize = 5; + + println!("{}", &s[0..i]); +} |
