Skip to content

Commit

Permalink
fix(release): fix the bug in release workflow (#27)
Browse files Browse the repository at this point in the history
* fix the bug in the release workflow

* update README usage
  • Loading branch information
guuzaa authored Mar 24, 2024
1 parent 52c9be7 commit 2ab08c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
actions: read
steps:
- uses: actions/checkout@v4

Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ std::cout << "a= " << a << ", b= " << b << '\n';
numbers::i64 ret = a.saturating_mul(b);
std::cout << ret << '\n';
```

### wrapping add
```c++
numbers::u128 max = numbers::u128::MAX;
numbers::u128 ret = max.wrapping_add(1); // wrapping around
std::cout << ret << '\n';
```
</details>

## Contribute
Expand Down

0 comments on commit 2ab08c0

Please sign in to comment.