Skip to content

Commit b09e6b5

Browse files
committed
Rename store to update
1 parent 43231bb commit b09e6b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modint.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ impl<I: Id> DynamicModInt<I> {
355355
if modulus == 0 {
356356
panic!("the modulus must not be 0");
357357
}
358-
I::companion_barrett().store(modulus);
358+
I::companion_barrett().update(modulus);
359359
}
360360

361361
/// Creates a new `DynamicModInt`.
@@ -478,7 +478,7 @@ impl Barrett {
478478
}
479479

480480
#[inline]
481-
fn store(&self, m: u32) {
481+
fn update(&self, m: u32) {
482482
let im = (-1i64 as u64 / m as u64).wrapping_add(1);
483483
self.m.store(m, atomic::Ordering::SeqCst);
484484
self.im.store(im, atomic::Ordering::SeqCst);

0 commit comments

Comments
 (0)