Made doctest actually valid
This commit is contained in:
parent
9281c0a871
commit
cc85292caf
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
```ignore
|
||||
```text
|
||||
This crate does no require nor std nor alloc. You're welcome ❤️
|
||||
```
|
||||
|
||||
|
|
@ -44,7 +44,8 @@ etc
|
|||
|
||||
[`generic_array`] implements arrays sized via `ArrayLength` trait implementors. Namely, it is implemented for `typenum` types, allowing creating an array sized as sum of two other arrays:
|
||||
|
||||
```rust,ignore
|
||||
```rust
|
||||
# use generic_array::{sequence::Concat, GenericArray};
|
||||
// some normal rust arrrays
|
||||
let arr1: [i32; 3] = [1, 2, 3];
|
||||
let arr2: [i32; 2] = [3, 5];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue