Skip to content

Commit a816892

Browse files
committed
Make README.md actually better readable
1 parent 2d0d0c0 commit a816892

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ use OO::Monitors;
1414
monitor Foo {
1515
has $.bar
1616

17-
method frobnicate() { } # accessed by one thread at a time
17+
# accessible by one thread at a time
18+
method frobnicate() { }
1819
}
1920
```
2021

@@ -38,7 +39,8 @@ monitor IPFilter {
3839
has $.blocked = 0;
3940

4041
method should-start-request($ip) {
41-
if %!blacklist{$ip} || (%!active{$ip} // 0) == $.limit {
42+
if %!blacklist{$ip}
43+
|| (%!active{$ip} // 0) == $.limit {
4244
$!blocked++;
4345
return False;
4446
}
@@ -62,7 +64,7 @@ Conditions
6264
Condition variables are declared with the `conditioned` trait on the monitor. To wait on a condition, use `wait-condition`. To signal that a condition has been met, use `meet-condition`. Here is an example of a bounded queue.
6365

6466
```raku
65-
monitor BoundedQueue is conditioned(< not-full not-empty >) {
67+
monitor BoundedQueue is conditioned(<not-full not-empty>) {
6668
has @!tasks;
6769
has $.limit = die "Must specify a limit";
6870

0 commit comments

Comments
 (0)