aboutsummaryrefslogtreecommitdiff
path: root/examples/arguments.sloth
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-07-17 23:00:30 -0500
committerNic Gaffney <gaffney_nic@protonmail.com>2023-07-17 23:00:30 -0500
commit52d6bc8533616dd642c96f8b6e72f459e1b4d465 (patch)
tree31f3dc1f3378151e57f7bc37fa2b4e22ab757661 /examples/arguments.sloth
parentee2133a13d61b3b3fb8fcf88f9c9781debd77d9e (diff)
downloadsloth-52d6bc8533616dd642c96f8b6e72f459e1b4d465.tar.gz
Standard lib rework
Diffstat (limited to 'examples/arguments.sloth')
-rw-r--r--examples/arguments.sloth2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/arguments.sloth b/examples/arguments.sloth
index 3e44dcc..9daaec7 100644
--- a/examples/arguments.sloth
+++ b/examples/arguments.sloth
@@ -1,7 +1,7 @@
fn main(argc: Int, argv: [String]) Int {
if argc == 2 {
print("The argument supplied is ");
- println(argv);
+ println(vgets(argv, 1));
} else {
println("Wrong # of args");
}