From 19c8450aa0a9ea008a3e5fd4ec44f7c3761db663 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 7 Dec 2025 22:53:45 -0500 Subject: Switch paths to use Result return values instead of fail() --- man/man3/tomo-Path.write_bytes.3 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'man/man3/tomo-Path.write_bytes.3') diff --git a/man/man3/tomo-Path.write_bytes.3 b/man/man3/tomo-Path.write_bytes.3 index 6534d18e..c11e97ed 100644 --- a/man/man3/tomo-Path.write_bytes.3 +++ b/man/man3/tomo-Path.write_bytes.3 @@ -2,14 +2,14 @@ .\" Copyright (c) 2025 Bruce Hill .\" All rights reserved. .\" -.TH Path.write_bytes 3 2025-11-29 "Tomo man-pages" +.TH Path.write_bytes 3 2025-12-07 "Tomo man-pages" .SH NAME Path.write_bytes \- write bytes to a file .SH LIBRARY Tomo Standard Library .SH SYNOPSIS .nf -.BI Path.write_bytes\ :\ func(path:\ Path,\ bytes:\ [Byte],\ permissions\ =\ Int32(0o644)\ ->\ Void) +.BI Path.write_bytes\ :\ func(path:\ Path,\ bytes:\ [Byte],\ permissions\ =\ Int32(0o644)\ ->\ Result) .fi .SH DESCRIPTION Writes the given bytes to the file at the specified path, creating the file if it doesn't already exist. Sets the file permissions as specified. If the file writing cannot be successfully completed, a runtime error is raised. @@ -27,7 +27,7 @@ bytes [Byte] A list of bytes to write to the file. - permissions The permissions to set on the file if it is created. Int32(0o644) .TE .SH RETURN -Nothing. +Either `Success` or `Failure(reason)`. .SH EXAMPLES .EX -- cgit v1.2.3