Skip to content

Commit

Permalink
typo + readme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sin-tel committed Dec 19, 2024
1 parent 64e2641 commit 9a37d06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ So use this at your own risk.
```rust
use no_denormals::no_denormals;

no_denormals(|| {
// your DSP code here.
});

unsafe {
no_denormals(|| {
// your DSP code here.
})
};
```
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl Drop for DenormalGuard {
/// Calls the `func` closure.
/// # Safety
///
/// Mdifying the masking flags, rounding mode, or denormals-are-zero mode flags leads to
/// Modifying the masking flags, rounding mode, or denormals-are-zero mode flags leads to
/// **immediate Undefined Behavior**: Rust assumes that these are always in their default state and
/// will optimize accordingly.
///
Expand Down

0 comments on commit 9a37d06

Please sign in to comment.