Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into huffman
Browse files Browse the repository at this point in the history
  • Loading branch information
antiguru committed Jun 14, 2024
2 parents 0d48437 + 04d5c63 commit 6757a3e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ flatcontainer = "0.4"

```rust
use flatcontainer::FlatStack;
fn main() {
let r: Result<_, u16> = Ok("abc");
let mut c = FlatStack::default_impl::<Result<&str, u16>>();
c.copy(&r);
assert_eq!(r, c.get(0));
}

let r: Result<_, u16> = Ok("abc");
let mut c = FlatStack::default_impl::<Result<&str, u16>>();
c.copy(&r);
assert_eq!(r, c.get(0));
```

## Details
Expand Down

0 comments on commit 6757a3e

Please sign in to comment.