Commit ab3be8e
committed
Refactor
- Changed the return type of `write_chars` from `bool` to `void`.
- Replaced error handling with `assert` statements to ensure the function's correctness.
- Updated the function documentation to explain the maximum length of the conversion of a number to a string.write_chars function to use void return type and replace error handling with assertions.1 parent af400ae commit ab3be8e
1 file changed
+11
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
304 | 312 | | |
305 | 313 | | |
306 | 314 | | |
307 | 315 | | |
308 | 316 | | |
309 | 317 | | |
310 | | - | |
311 | | - | |
| 318 | + | |
312 | 319 | | |
313 | | - | |
314 | 320 | | |
315 | 321 | | |
316 | 322 | | |
317 | 323 | | |
318 | 324 | | |
319 | | - | |
320 | | - | |
| 325 | + | |
321 | 326 | | |
322 | | - | |
323 | 327 | | |
324 | 328 | | |
325 | 329 | | |
| |||
0 commit comments