Skip to content

Commit

Permalink
Improve some comments (#8)
Browse files Browse the repository at this point in the history
* Less complicated are_primes_below example

* Spelling

* Remove mention of isqrt
  • Loading branch information
JSorngard authored Sep 29, 2023
1 parent e07bc3c commit 080295f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
#![cfg_attr(not(test), no_std)]

/// The functions that return or take integers use this type. Currently `u32`.
// Just change this to whatever unsigned primitive integer type you want and it should work as long as it has enough bits for your purposes (and you change the special case in isqrt).
// This is used since there is currenlty no way to be generic over types that can do arithmetic at compile time.
// Just change this to whatever unsigned primitive integer type you want and it should work as long as it has enough bits for your purposes.
// This is used since there is currently no way to be generic over types that can do arithmetic at compile time.
type Underlying = u32;

mod imath;
Expand Down

0 comments on commit 080295f

Please sign in to comment.