Made doctest actually valid

This commit is contained in:
Dzuchun 2024-11-16 14:10:51 +02:00
commit cc85292caf

View file

@ -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];