Update comment
This commit is contained in:
parent
1eb300ede1
commit
3ef9dfdd42
1 changed files with 2 additions and 3 deletions
|
@ -165,9 +165,8 @@ impl ScalarInt {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Make sure the `data` fits in `size`.
|
/// Make sure the `data` fits in `size`.
|
||||||
/// This is guaranteed by all constructors here, but since the enum variants are public,
|
/// This is guaranteed by all constructors here, but having had this check saved us from
|
||||||
/// it could still be violated (even though no code outside this file should
|
/// bugs many times in the past, so keeping it around is definitely worth it.
|
||||||
/// construct `Scalar`s).
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
fn check_data(self) {
|
fn check_data(self) {
|
||||||
// Using a block `{self.data}` here to force a copy instead of using `self.data`
|
// Using a block `{self.data}` here to force a copy instead of using `self.data`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue