-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reworded explanation of calculating namespace when IgnoreMaxNamespace is set #134
Reworded explanation of calculating namespace when IgnoreMaxNamespace is set #134
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 seems clearer to me, thanks!
Codecov Report
@@ Coverage Diff @@
## master #134 +/- ##
=======================================
Coverage 96.33% 96.33%
=======================================
Files 6 6
Lines 464 464
=======================================
Hits 447 447
Misses 11 11
Partials 6 6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, it looks clearer to me too! I added a small suggestion below.
Co-authored-by: Evan Forbes <42654277+evan-forbes@users.noreply.github.com>
docs/nmt-lib.md
Outdated
|
||
Concretely, for a node `n` with children `l` and `r`, the namespace ID is the largest namespace value from `l` and `r` smaller than `maxPossibleNamespace`, if such a namespace ID exists. | ||
Otherwise, if all candidate values are equal to `maxPossibleNamespace`, the namespace ID of `n` is set to `maxPossibleNamespace`. | ||
Precisely, if a set `C = {ns `$\in$` {l.minNs, l.maxNs, r.minNs, r.maxNs}: ns < maxPossibleNamespace}` is not empty, `n.maxNs = max(C)`. If `C` is empty, `n.maxNs = maxPossibleNamespace`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we just need to fix the linter errors, and then we should be able to merge 🙂
docs/nmt-lib.md:53:36 MD038/no-space-in-code Spaces inside code span elements [Context: "` {l.minNs, l.maxNs, r.minNs, ..."]
docs/nmt-lib.md:53:21 MD038/no-space-in-code Spaces inside code span elements [Context: "`C = {ns `"]
Congrats, your important contribution to this open-source project has earned you a GitPOAP! GitPOAP: 2023 Celestia Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
Overview
This PR rephrases the explanation on how the namespace range is calculated when the parameter
IgnoreMaxNamespace
is set. If merged, it will close #133 .I tried to simplify sentences explaining the logic and add a precise expression at the end of the explanation.
rendered document
Checklist