summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorShokara Kou <kou@13f0.net>2022-05-24 21:59:43 -0400
committerAoi Koizumi (古泉 あおい) <novaburst@kalli.st>2022-05-25 02:05:23 +0000
commit547b5384d16aeaac16b7133c453894d639ce6c36 (patch)
tree64e6090229ab2e680c83b67a9ffd66cf15b43a9a
parent569f2b0098ed1539fbd5084e23cb3556d345fb35 (diff)
downloadhelp-547b5384d16aeaac16b7133c453894d639ce6c36.tar.gz
add memory safety to help
Signed-off-by: Shokara Kou <kou@13f0.net>
-rw-r--r--README.org1
-rw-r--r--rust/help.rs4
2 files changed, 5 insertions, 0 deletions
diff --git a/README.org b/README.org
index 771d8db..380f18f 100644
--- a/README.org
+++ b/README.org
@@ -14,6 +14,7 @@ Often found as a bash built-in command, but this one does tell you to RTFM. It h
 + OCaml ~cd ocaml && ocaml help.ml || cd ocaml && ocamlc -o help help.ml~
 + Python ~cd python && python3 help.py~
 + C ~cd c && cc -o help help.c~
++ Rust ~cd rust && rustc help.rs~
 
 By the way, this is just an example on how a useless program like this can be implemented in many ways possible. 
 
diff --git a/rust/help.rs b/rust/help.rs
new file mode 100644
index 0000000..26a439b
--- /dev/null
+++ b/rust/help.rs
@@ -0,0 +1,4 @@
+fn main()
+{
+	println!("would you mind reading the fucking manual pages? (now memory safe!)")
+}