-
Notifications
You must be signed in to change notification settings - Fork 623
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
docs(encoding): Cleanup and fix doc lints #4838
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4838 +/- ##
==========================================
- Coverage 91.97% 91.97% -0.01%
==========================================
Files 487 487
Lines 41539 41545 +6
Branches 5365 5365
==========================================
+ Hits 38207 38211 +4
- Misses 3274 3276 +2
Partials 58 58 ☔ View full report in Codecov by Sentry. |
@@ -2,16 +2,24 @@ | |||
// Copyright 2020 Keith Cirkel. All rights reserved. MIT license. | |||
// Copyright 2023 Skye "MierenManz". All rights reserved. MIT license. | |||
/** | |||
* Functions for encoding typed integers in array buffers. | |||
* Utilities for {@link https://protobuf.dev/programming-guides/encoding/#varints VarInt} encoding |
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 for adding the reference!
@@ -20,8 +28,19 @@ | |||
// This implementation is a port of https://deno.land/x/varint@v2.0.0 by @keithamus | |||
// This module is browser compatible. | |||
|
|||
/** | |||
* The maximum value of an unsigned 64-bit integer. | |||
* Equivalent to `2n**64n - 1n` |
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.
👍
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.
LGTM
Fixes doc lints for the
encoding
package to prepare for stabilization.While I was there, I also updated examples to use assertions (and caught a couple of incorrect examples in the process).