Fix typo in README, add CONTRIBUTING.md link
This commit is contained in:
parent
a6dfb3a19e
commit
e79c75df81
10
README.md
10
README.md
@ -17,6 +17,7 @@ data structures and utilities that depend on the Garbage Collector in Phobos.
|
|||||||
|
|
||||||
* [Bug tracker](https://issues.caraus.io/projects/tanya/issues)
|
* [Bug tracker](https://issues.caraus.io/projects/tanya/issues)
|
||||||
* [Documentation](https://docs.caraus.io/tanya)
|
* [Documentation](https://docs.caraus.io/tanya)
|
||||||
|
* [Contribution guidelines](CONTRIBUTING.md)
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
@ -71,10 +72,10 @@ a proper deallocation in some cases for you.
|
|||||||
### Exceptions
|
### Exceptions
|
||||||
|
|
||||||
Since exceptions are normal classes in D, they are allocated and dellocated the
|
Since exceptions are normal classes in D, they are allocated and dellocated the
|
||||||
same as described above. But there are two differences how they are used:
|
same as described above, but:
|
||||||
|
|
||||||
1. The caller is *always* responsible for destroying a caught exception.
|
1. The caller is **always** responsible for destroying a caught exception.
|
||||||
2. Exceptions are *always* allocated and should be always allocated with the
|
2. Exceptions are **always** allocated and should be always allocated with the
|
||||||
`defaultAllocator`.
|
`defaultAllocator`.
|
||||||
|
|
||||||
```d
|
```d
|
||||||
@ -122,8 +123,7 @@ foreach (el; arr[0 .. 5])
|
|||||||
int i = arr[7]; // Access 7th element.
|
int i = arr[7]; // Access 7th element.
|
||||||
```
|
```
|
||||||
|
|
||||||
There more containers in the `tanya.container` package.
|
There are more containers in the `tanya.container` package.
|
||||||
|
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user