Skip to content

Commit 44666dc

Browse files
Minor syntax tidy up.
1 parent 0b3c7ed commit 44666dc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

benchmark/server/compiled.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <string.h>
99

1010
#define BUFFER_SIZE 1024
11-
#define on_error(...) { fprintf(stderr, __VA_ARGS__); fflush(stderr); exit(1); }
11+
#define on_error(...) {fprintf(stderr, __VA_ARGS__); fflush(stderr); exit(1);}
1212

1313
int main (int argc, char *argv[]) {
1414
if (argc < 2) on_error("Usage: %s [port]\n", argv[0]);

examples/interrupt.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
th.join
2424

2525
#
26-
# c = Thread.new { Thread.stop; puts "hey!" }
26+
# c = Thread.new {Thread.stop; puts "hey!"}
2727
# sleep 0.1 while c.status!='sleep'
2828
# c.wakeup
2929
# c.join

releases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ heap.concat([5, 2, 8, 1, 9, 3])
2222
removed = heap.delete(5) # Returns 5, heap maintains order
2323

2424
# Bulk removal with condition
25-
count = heap.delete_if { |x| x.even? } # Removes 2, 8 efficiently
25+
count = heap.delete_if{|x| x.even?} # Removes 2, 8 efficiently
2626
```
2727

2828
The `delete_if` and `concat` methods are particularly efficient for bulk operations, using bottom-up heapification to maintain the heap property in O(n) time. This provides significant performance improvements:

0 commit comments

Comments
 (0)