Skip to content

Commit

Permalink
Formatting, releasenotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
lerno committed Nov 13, 2024
1 parent 0b09afd commit 69e74b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/std/io/stream/buffer.c3
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ fn usz! WriteBuffer.write(&self, char[] bytes) @dynamic
fn void! WriteBuffer.write_byte(&self, char c) @dynamic
{
usz n = self.bytes.len - self.index - 1;
if (n == 0) {
if (n == 0)
{
self.write_pending()!;
self.index = 0;
}
self.bytes[self.index] = c;
self.index += 1;
Expand Down
1 change: 1 addition & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### Fixes
- Fix bug where `a > 0 ? f() : g()` could cause a compiler crash if both returned `void!`.
- Fix issue writing a single byte in the WriteBuffer

### Stdlib changes

Expand Down

0 comments on commit 69e74b6

Please sign in to comment.