Skip to content

docs(encoding): Cleanup and fix doc lints - #4838

Merged
nathanwhit merged 7 commits into
denoland:mainfrom
nathanwhit:encoding-docs
May 24, 2024
Merged

nathanwhit merged 7 commits into
denoland:mainfrom
nathanwhit:encoding-docs

Conversation

@nathanwhit

Copy link
Copy Markdown
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).

@nathanwhit
nathanwhit requested a review from kt3k as a code owner May 22, 2024 19:08
@codecov

codecov Bot commented May 22, 2024 •

Copy link
Copy Markdown

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
Comment thread encoding/varint.ts
// 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
Copy Markdown
Contributor

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!

Comment thread encoding/varint.ts

/**
* The maximum value of an unsigned 64-bit integer.
* Equivalent to `2n**64n - 1n`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@kt3k kt3k left a comment

Copy link
Copy Markdown
Contributor

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
37 of 38 tasks
@nathanwhit
nathanwhit merged commit 472f370 into denoland:main May 24, 2024
@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