Skip to content

Commit

Permalink
Merge pull request #1403 from o1-labs/feat/fix-api-docs
Browse files Browse the repository at this point in the history
fix(docs): Add backtick annotations to generic type comments
  • Loading branch information
MartinMinkov authored Feb 2, 2024
2 parents 4368e89 + 0e8aed6 commit 5d8e331
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/gadgets/foreign-field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ const Field3 = {
},

/**
* Provable<T> interface for `Field3 = [Field, Field, Field]`.
* `Provable<T>` interface for `Field3 = [Field, Field, Field]`.
*
* Note: Witnessing this creates a plain tuple of field elements without any implicit
* range checks.
Expand Down
4 changes: 2 additions & 2 deletions src/lib/provable-types/packed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { fields, modifiedField } from './fields.js';
export { Packed, Hashed };

/**
* Packed<T> is a "packed" representation of any type T.
* `Packed<T>` is a "packed" representation of any type `T`.
*
* "Packed" means that field elements which take up fewer than 254 bits are packed together into
* as few field elements as possible.
Expand Down Expand Up @@ -141,7 +141,7 @@ function countFields(input: HashInput) {
}

/**
* Hashed<T> represents a type T by its hash.
* `Hashed<T>` represents a type `T` by its hash.
*
* Since a hash is only a single field element, this can be more efficient in provable code
* where the number of constraints depends on the number of field elements per value.
Expand Down

0 comments on commit 5d8e331

Please sign in to comment.