aboutsummaryrefslogtreecommitdiff
path: root/environment.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-03 16:58:12 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-03 16:58:12 -0500
commit52e3d3fe6f2c3e5051affe155fed364d1a5d623c (patch)
tree9491276759a394e4f7e4678f53dc3e8dc68bc28c /environment.c
parent7ddb2ffb02f9fff5d78c990165d1008248628c66 (diff)
Update Path:read_bytes() API to take a byte count
Diffstat (limited to 'environment.c')
-rw-r--r--environment.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/environment.c b/environment.c
index 7eb13685..5b829b1e 100644
--- a/environment.c
+++ b/environment.c
@@ -326,7 +326,7 @@ env_t *new_compilation_unit(CORD libname)
{"is_symlink", "Path$is_symlink", "func(path:Path -> Bool)"},
{"parent", "Path$parent", "func(path:Path -> Path)"},
{"read", "Path$read", "func(path:Path -> Text?)"},
- {"read_bytes", "Path$read_bytes", "func(path:Path -> [Byte]?)"},
+ {"read_bytes", "Path$read_bytes", "func(path:Path, limit=!Int -> [Byte]?)"},
{"relative", "Path$relative", "func(path:Path, relative_to=(./) -> Path)"},
{"remove", "Path$remove", "func(path:Path, ignore_missing=no)"},
{"resolved", "Path$resolved", "func(path:Path, relative_to=(./) -> Path)"},