Skip to content

Commit 1ace019

Browse files
Update comments
1 parent a96412e commit 1ace019

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mee6/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ impl LevelInfo {
2323
/// immediately, rather then when the getter is called.
2424
#[must_use]
2525
pub fn new(xp: u64) -> Self {
26-
// The operation used to calculate how many XP a given level is is (5 / 6) * level * (2 * level * level + 27 * level + 91), but it's optimized here.
26+
// The operation used to calculate how many XP a given level is is (5 / 6) * level * (2 * level * level + 27 * level + 91),
27+
// but it is not really possible to cleanly calculate the inverse of this
2728
let level = {
2829
let mut testxp = 0;
2930
let mut level = 0;

0 commit comments

Comments
 (0)