Skip to content

Commit

Permalink
builtin: fix typos in builtin_writeln_should_write_at_once and builti…
Browse files Browse the repository at this point in the history
…n_writeln_should_write_at_once user defines
  • Loading branch information
spytheman committed Oct 20, 2023
1 parent b5cf06f commit 561fd94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
- gg: expand the `-d show_fps` background, so fps>100 will not overflow it
- Math.big: restore gdc_euclid, use it for smaller numbers, fix bench_euclid.v .
- Add new generic `arrays.uniq, arrays.uniq_only, arrays.uniq_only_repeated, arrays.uniq_all_repeated, arrays.distinct`
- builtin: add support for `-d bultin_writeln_should_write_at_once` and `-d bultin_write_buf_to_fd_should_use_c_write` (#19243)
- builtin: add support for `-d builtin_writeln_should_write_at_once` and `-d builtin_write_buf_to_fd_should_use_c_write` (#19243)
- builtin: always show the assert message, if it was defined in the source, in non test programs too (fix #19240)
- time: check if a day is a valid day of its month (#19232)
- toml: Add generic automatic decoding and encoding of simple structs, when they don't implement custom methods (#17970)
Expand Down
4 changes: 2 additions & 2 deletions vlib/builtin/builtin.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ pub fn println(s string) {

[manualfree]
fn _writeln_to_fd(fd int, s string) {
$if !bultin_writeln_should_write_at_once ? {
$if !builtin_writeln_should_write_at_once ? {
lf := u8(`\n`)
_write_buf_to_fd(fd, s.str, s.len)
_write_buf_to_fd(fd, &lf, 1)
Expand All @@ -288,7 +288,7 @@ fn _write_buf_to_fd(fd int, buf &u8, buf_len int) {
mut ptr := unsafe { buf }
mut remaining_bytes := isize(buf_len)
mut x := isize(0)
$if freestanding || vinix || bultin_write_buf_to_fd_should_use_c_write ? {
$if freestanding || vinix || builtin_write_buf_to_fd_should_use_c_write ? {
unsafe {
for remaining_bytes > 0 {
x = C.write(fd, ptr, remaining_bytes)
Expand Down

0 comments on commit 561fd94

Please sign in to comment.