Skip to content

Commit 1e7d94b

Browse files
committed
Clarify that pwd output is not null terminated.
1 parent bf058ca commit 1e7d94b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ pub struct Api {
139139
/// The current directory is stored as UTF-8 into the given buffer. The
140140
/// function returns the number of bytes written to the buffer, or an error.
141141
/// If the function did not return an error, the buffer can be assumed to
142-
/// contain a valid file path.
142+
/// contain a valid file path. That path will not be null terminated.
143143
pub pwd: extern "C" fn(path: FfiBuffer) -> Result<usize>,
144144
/// Allocate some memory.
145145
///

0 commit comments

Comments
 (0)