aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-04-27 18:14:52 -0500
committerGitHub <noreply@github.com>2023-04-27 18:14:52 -0500
commitf0d121688d9d65ee855602eeaf60ed5c2bc1436f (patch)
tree2a3b4d2d448268ce999599c15ad0e4b2edca07d9
parent1466d51eed5767e92d3264289590770932ceba96 (diff)
downloadsloth-f0d121688d9d65ee855602eeaf60ed5c2bc1436f.tar.gz
Change "file_read" to "file$read"
-rw-r--r--crates/sloth_vm/src/sloth_std/file.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/sloth_vm/src/sloth_std/file.rs b/crates/sloth_vm/src/sloth_std/file.rs
index dea914a..ade1b2b 100644
--- a/crates/sloth_vm/src/sloth_std/file.rs
+++ b/crates/sloth_vm/src/sloth_std/file.rs
@@ -32,8 +32,8 @@ pub const FILE_READ: NativeFunction = NativeFunction {
arity: 1,
returns_value: true,
doc: Some(
- "NativeFunction file_read: \n\targs: path (str)\n\tdesc: Returns the contents of a file \
- at <path>\n\tExample: `var todo = file_read('/home/sloth/todo.txt'); # Assuming the \
+ "NativeFunction file$read: \n\targs: path (str)\n\tdesc: Returns the contents of a file \
+ at <path>\n\tExample: `var todo = file$read('/home/sloth/todo.txt'); # Assuming the \
contents of todo.txt are 'Take a nap' then todo = 'Take a nap'`",
),
};