Skip to content

Commit f470c3c

Browse files
authored
[WasmFS] Fix copy-paste error in a comment (#22263)
This is the same code as the read method, but as this is in the write method it should say "write" in this comment. xref: #22261 (comment)
1 parent d6f18ae commit f470c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/lib/wasmfs/syscalls.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static __wasi_errno_t writeAtOffset(OffsetHandling setOffset,
159159
// The write was successful.
160160
bytesWritten += result;
161161
if (result < len) {
162-
// The read was short, so stop here.
162+
// The write was short, so stop here.
163163
break;
164164
}
165165
}

0 commit comments

Comments
 (0)