From f0d121688d9d65ee855602eeaf60ed5c2bc1436f Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Thu, 27 Apr 2023 18:14:52 -0500 Subject: Change "file_read" to "file$read" --- crates/sloth_vm/src/sloth_std/file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/sloth_vm') 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 \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 \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'`", ), }; -- cgit v1.2.3 From 2367b44b4e3806ba6ae03c1299577caebeb6f7bd Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Thu, 27 Apr 2023 18:16:07 -0500 Subject: Change "file_write" to "file$write" --- crates/sloth_vm/src/sloth_std/file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/sloth_vm') diff --git a/crates/sloth_vm/src/sloth_std/file.rs b/crates/sloth_vm/src/sloth_std/file.rs index ade1b2b..b0b476a 100644 --- a/crates/sloth_vm/src/sloth_std/file.rs +++ b/crates/sloth_vm/src/sloth_std/file.rs @@ -76,8 +76,8 @@ pub const FILE_WRITE: NativeFunction = NativeFunction { arity: 2, returns_value: false, doc: Some( - "NativeFunction file_write: \n\targs: path (str), content (str)\n\tdesc: Writes \ - to file at \n\tExample: `file_write('/home/sloth/todo.txt', 'Take a nap'); # \ + "NativeFunction file$write: \n\targs: path (str), content (str)\n\tdesc: Writes \ + to file at \n\tExample: `file$write('/home/sloth/todo.txt', 'Take a nap'); # \ todo.txt now contains the string 'Take a nap'`", ), }; -- cgit v1.2.3 From 1cc0b13f3915a281aea109050b844f6cb38db71f Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Thu, 27 Apr 2023 18:19:05 -0500 Subject: Change "get_doc" to "get$doc" --- crates/sloth_vm/src/sloth_std/misc.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/sloth_vm') diff --git a/crates/sloth_vm/src/sloth_std/misc.rs b/crates/sloth_vm/src/sloth_std/misc.rs index 6994657..dc6b8fd 100644 --- a/crates/sloth_vm/src/sloth_std/misc.rs +++ b/crates/sloth_vm/src/sloth_std/misc.rs @@ -36,8 +36,8 @@ pub const DOCS: NativeFunction = NativeFunction { arity: 1, returns_value: true, doc: Some( - "NativeFunction get_doc: \n\targs: name (str)\n\tdesc: Returns documentaiton on a \ - function with name \n\tExample: `var doc = get_doc('wait'); # Returns the \ + "NativeFunction get$doc: \n\targs: name (str)\n\tdesc: Returns documentaiton on a \ + function with name \n\tExample: `var doc = get$doc('wait'); # Returns the \ documentation of the 'wait' function to doc`", ), }; -- cgit v1.2.3