alshdavid / BorrowScript

TypeScript with a Borrow Checker. Multi-threaded, Tiny binaries. No GC. Easy to write.
1.45k stars 16 forks source link

Typo in readme #23

Closed tejacques closed 2 years ago

tejacques commented 3 years ago

Here: https://github.com/alshdavid/BorrowScript/blob/main/README.md#write

It uses read in the example instead of write Is:

function writeFoo(read foo: string) {
  foo.push('bar')
  console.log(foo) // "foobar"
}

should be:

function writeFoo(write foo: string) {
  foo.push('bar')
  console.log(foo) // "foobar"
}
alshdavid commented 2 years ago

Sorted, thanks