Skip to content

Commit b97aded

Browse files
committed
fix docstrings
Signed-off-by: martinvuyk <[email protected]>
1 parent 087a4f9 commit b97aded

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

mojo/stdlib/src/builtin/error.mojo

+5-2
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,13 @@ struct Error(
201201
return String("Error(", repr(self.as_string_slice()), ")")
202202

203203
fn byte_length(self) -> Int:
204-
"""Get the byte length of the Error string.
204+
"""Get the length of the Error string in bytes.
205205
206206
Returns:
207-
The byte length of the Error string.
207+
The length of the Error string in bytes.
208+
209+
Notes:
210+
This does not include the trailing null terminator in the count.
208211
"""
209212
return abs(self.loaded_length)
210213

0 commit comments

Comments
 (0)