Skip to content

Commit 260d5d3

Browse files
committed
xz: Fix comments
1 parent bf6da9a commit 260d5d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/xz/file_io.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -993,8 +993,8 @@ io_open_dest(file_pair *pair)
993993
/// \param pair File whose dest_fd should be closed
994994
/// \param success If false, the file will be removed from the disk.
995995
///
996-
/// \return Zero if closing succeeds. On error, -1 is returned and
997-
/// error message printed.
996+
/// \return If closing succeeds, false is returned. On error, an error
997+
/// message is printed and true is returned.
998998
static bool
999999
io_close_dest(file_pair *pair, bool success)
10001000
{

src/xz/file_io.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,6 @@ extern bool io_pread(file_pair *pair, io_buf *buf, size_t size, uint64_t pos);
177177
/// \param buf Buffer containing the data to be written
178178
/// \param size Size of the buffer; must be at most IO_BUFFER_SIZE
179179
///
180-
/// \return On success, zero is returned. On error, -1 is returned
181-
/// and error message printed.
180+
/// \return On success, false is returned. On error, error message
181+
/// is printed and true is returned.
182182
extern bool io_write(file_pair *pair, const io_buf *buf, size_t size);

0 commit comments

Comments
 (0)