Update docs

This commit is contained in:
Armin 2021-08-22 19:20:39 +02:00
parent ddc7ae5501
commit 64d16ee8a7
2 changed files with 8 additions and 2 deletions

View file

@ -10,5 +10,11 @@ Data structure grid for rust. Provide a two dimensional data structure for rust
Most of the functionality provided by the [std::vec::Vec](https://doc.rust-lang.org/std/vec/struct.Vec.html) type for one dimensional vectors
is implemented for two dimensions in this crate.
To use *grid* with *no_std* import the library such as:
``` toml
grid = { version = "*", default-features = false }
```
- [documentation](https://docs.rs/grid/)
- [library on crates.io](https://crates.io/crates/grid)

View file

@ -170,8 +170,8 @@ impl<T: Clone> Grid<T> {
/// ```
///
/// will create a grid with the following layout:
/// [1,2,3]
/// [4,5,6]
/// \[1,2,3\]
/// \[4,5,6\]
///
/// This example will fail, because `vec.len()` is not a multiple of `cols`:
///