Skip to content

Commit

Permalink
Finish 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsided committed Mar 8, 2024
1 parent 4d725e2 commit 21e00ca
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
15 changes: 12 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,27 @@
All notable changes to this project will be documented in this file.
This project uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.1] - 2024-03-08

[0.2.1]: https://github.com/sunsided/swap3-rs/releases/tag/0.2.1

### Internal

- Update the `README.md` file to correctly showcase the use of `swap3_bca` on a slice.

## [0.2.0] - 2023-07-10

[0.2.0]: https://github.com/sunsided/swap3-rs/releases/tag/0.2.0

### Added

- Added the `Swap3` trait to provide the `swap3_bca` and `swap3_cab` functions
directly on a slice reference.

## [0.1.0] - 2023-07-10

[0.1.0]: https://github.com/sunsided/swap3-rs/releases/tag/0.1.0

### Internal

- 🎉 Initial release.

[0.2.0]: https://github.com/sunsided/swap3-rs/releases/tag/0.2.0
[0.1.0]: https://github.com/sunsided/swap3-rs/releases/tag/0.1.0
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "swap3"
version = "0.2.0"
version = "0.2.1"
description = "Swapping of three references, rotating the values left or right"
authors = ["Markus Mayer"]
repository = "https://github.com/sunsided/swap3-rs"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ For slices, the `swap3_bca_slice` and `swap3_cab_slice` functions can be used:

```rust
use swap3::prelude::*;

fn swap3_bca() {
let mut vec = vec![10, 20, 30, 40, 50, 60];
vec.swap3_bca(0, 1, 4);
vec.swap3_bca(0, 1, 4); // or swap3_bca_slice(&mut vec, 0, 1, 4)
assert_eq!(vec, &[20, 50, 30, 40, 10, 60]);
}
```

0 comments on commit 21e00ca

Please sign in to comment.