noislabs / nois

The Nois standard library
10 stars 4 forks source link

Typo in error string #46

Open giorgionocera opened 9 months ago

giorgionocera commented 9 months ago

Hi there, it seems that during the 4c6c59342744af12c2bde6d04afa66d5291fb1fb commit, this error message was not adapted.

https://github.com/noislabs/nois/blob/4c6c59342744af12c2bde6d04afa66d5291fb1fb/src/select_from_weighted.rs#L47

The function works also with values that sums to u128:MAX, so x | 0 ≤ x ≤ u128 => x ≥ u32 is fine.

It is only an error message, but I'm preparing a PR for this.