summaryrefslogtreecommitdiff
path: root/rust/hello/src
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2025-09-06 09:30:39 +0200
committerCarlos Maiolino <[email protected]>2025-09-06 09:35:00 +0200
commitee8a08bfa24d9a3d09273fdebe8d73ac38c545f9 (patch)
tree856c1a6347bea7f29bf2048c8f2028e5a3e656ef /rust/hello/src
parent93b1c04a218858ecc59b6b8929103695b7b8c2a0 (diff)
Update guessing game
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'rust/hello/src')
-rw-r--r--rust/hello/src/bin/false.rs4
-rw-r--r--rust/hello/src/bin/true.rs3
-rw-r--r--rust/hello/src/main.rs3
3 files changed, 10 insertions, 0 deletions
diff --git a/rust/hello/src/bin/false.rs b/rust/hello/src/bin/false.rs
new file mode 100644
index 0000000..a0d6817
--- /dev/null
+++ b/rust/hello/src/bin/false.rs
@@ -0,0 +1,4 @@
+fn main() {
+ //std::process::exit(1);
+ std::process::abort();
+}
diff --git a/rust/hello/src/bin/true.rs b/rust/hello/src/bin/true.rs
new file mode 100644
index 0000000..44490fa
--- /dev/null
+++ b/rust/hello/src/bin/true.rs
@@ -0,0 +1,3 @@
+fn main() {
+ std::process::exit(0);
+}
diff --git a/rust/hello/src/main.rs b/rust/hello/src/main.rs
new file mode 100644
index 0000000..e7a11a9
--- /dev/null
+++ b/rust/hello/src/main.rs
@@ -0,0 +1,3 @@
+fn main() {
+ println!("Hello, world!");
+}