Skip to content
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

Merged
merged 7 commits into from
May 24, 2024

Conversation

nathanwhit
Copy link
Member

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).

Copy link

codecov bot commented May 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.97%. Comparing base (83991c7) to head (392d879).

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.
📢 Have feedback on the report? Share it here.

@iuioiua iuioiua requested a review from satyarohith May 22, 2024 22:22
@@ -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
Copy link
Member

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`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k kt3k mentioned this pull request May 23, 2024
38 tasks
@nathanwhit nathanwhit merged commit 472f370 into denoland:main May 24, 2024
12 checks passed
@nathanwhit nathanwhit deleted the encoding-docs branch May 24, 2024 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants