diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-27 18:30:38 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-27 18:30:38 -0500 |
| commit | c4b4f9f86fa1e48b95f5c45e2e6c7005fe88fe96 (patch) | |
| tree | 1d437a7b2f60d205500e2403b009af53358f347b /crates/sloth_vm/src/sloth_std/file.rs | |
| parent | 935f53cddfdc87dd0da0606595f4da1d4238c617 (diff) | |
| parent | 1cc0b13f3915a281aea109050b844f6cb38db71f (diff) | |
| download | sloth-c4b4f9f86fa1e48b95f5c45e2e6c7005fe88fe96.tar.gz | |
Merge branch 'standard-library' of github.com-Nic:slothlang/sloth into standard-library
Diffstat (limited to 'crates/sloth_vm/src/sloth_std/file.rs')
| -rw-r--r-- | crates/sloth_vm/src/sloth_std/file.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/sloth_vm/src/sloth_std/file.rs b/crates/sloth_vm/src/sloth_std/file.rs index dea914a..b0b476a 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'`", ), }; @@ -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 <content> \ - to file at <path>\n\tExample: `file_write('/home/sloth/todo.txt', 'Take a nap'); # \ + "NativeFunction file$write: \n\targs: path (str), content (str)\n\tdesc: Writes <content> \ + to file at <path>\n\tExample: `file$write('/home/sloth/todo.txt', 'Take a nap'); # \ todo.txt now contains the string 'Take a nap'`", ), }; |
