commit b385b2f8fb48269b13a0dbaff5742db876a592f8
parent 3c228f815e22c059db7d9a24bb38b480c3e9c4d6
Author: Sebastian <sebastian@sebsite.pw>
Date: Sun, 29 Jan 2023 01:27:45 -0500
path: update README
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/path/README b/path/README
@@ -8,10 +8,10 @@ Use of the [[buffer]] type is recommended for efficient and consistent
manipulation of filesystem paths.
let buf = path::init();
- path::add(&buf, "/", "foo", "bar", "baz.txt");
+ path::add(&buf, "/", "foo", "bar", "baz.txt")!;
fmt::println(path::string(&buf))!; // "/foo/bar/baz.txt"
- path::add(&buf, "../.././hello.txt");
+ path::add(&buf, "../.././hello.txt")!;
fmt::println(path::string(&buf))!; // "/foo/hello.txt"
The buffer object includes an array of length [[PATH_MAX]], which can be