Skip to content

Commit

Permalink
fix a few readme issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed May 11, 2018
1 parent 7896e23 commit e62ae6b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Documentation [std.io](https://martinnowak.github.io/io/std/io)

IOs are thin, OS-independent abstractions I/O devices.
IOs are thin, OS-independent abstractions over I/O devices.
```d
size_t write(const scope ubyte[] buffer);
size_t read(scope ubyte[] buffer);
Expand Down Expand Up @@ -36,11 +36,13 @@ catch (IOException e)
IOs use unique ownership and are [moveable](https://dlang.org/phobos/std_algorithm_mutation.html#.move) but not copyable (Use [refCounted](https://dlang.org/phobos/std_typecons.html#refCounted) for shared ownership).
```d
io2 = io.move;
assert(!io2.isClosed);
assert(io.isClosed);
assert(io2.isOpen);
assert(!io.isOpen);
auto rc = refCounted(io2.move);
auto rc2 = rc;
assert(rc.isOpen);
assert(rc2.isOpen);
```

IOs can be converted to polymorphic interfaces if necessary.
Expand Down

0 comments on commit e62ae6b

Please sign in to comment.