Skip to content

Commit 5fba679

Browse files
Documented additional constraiatns
...which was not documented in the original code.
1 parent df17bbd commit 5fba679

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/internal_math.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ struct Barrett {
2525
impl Barrett {
2626
/// # Arguments
2727
/// * `m` `1 <= m`
28+
/// (Note: `m <= 2^31` should also hold, which is undocumented in the original library.
29+
/// See the [pull reqeust commment](https://github.com/rust-lang-ja/ac-library-rs/pull/3#discussion_r484661007)
30+
/// for more details.)
2831
fn new(m: u32) -> Barrett {
2932
Barrett {
3033
_m: m,

0 commit comments

Comments
 (0)