Skip to content

Commit 0d976fd

Browse files
vogdbrvagg
authored andcommitted
chore: clean typos and formatting
1 parent b7ee1a3 commit 0d976fd

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ v0.toV1().toString()
101101

102102
### Multicodec Encoders / Decoders / Codecs
103103

104-
This library defines [`BlockEncoder`, `BlockDecoder` and `BlockCodec` interfaces](https://github.com/multiformats/js-multiformats/blob/master/src/codecs/interface.ts). Codec implementations should conform to the `BlockCodec` interface which implements both `BlockEncoder` and `BlockDecoder`.
104+
This library defines [`BlockEncoder`, `BlockDecoder` and `BlockCodec` interfaces](https://github.com/multiformats/js-multiformats/blob/master/src/codecs/interface.ts).
105+
Codec implementations should conform to the `BlockCodec` interface which implements both `BlockEncoder` and `BlockDecoder`.
106+
Here is an example implementation of JSON `BlockCodec`.
105107

106108
```js
107109
/**
@@ -182,7 +184,7 @@ console.log(blocks)
182184
## Implementations
183185

184186
By default, no base encodings (other than base32 & base58btc), hash functions,
185-
or codec implementations are included exposed by `multiformats`, you need to
187+
or codec implementations are exposed by `multiformats`, you need to
186188
import the ones you need yourself.
187189

188190
### Multibase codecs

src/cid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export class CID {
205205
return new CID(version, code, multihash, bytes || encodeCID(version, code, multihash.bytes))
206206
} else if (value != null && value[cidSymbol] === true) {
207207
// If value is a CID from older implementation that used to be tagged via
208-
// symbol we still rebase it to the this `CID` implementation by
208+
// symbol we still rebase it to this `CID` implementation by
209209
// delegating that to a constructor.
210210
const { version, multihash, code } = value
211211
const digest = Digest.decode(multihash)

src/hashes/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface MultihashDigest<Code extends number = number> {
2626
size: number
2727

2828
/**
29-
* Binary representation of the this multihash digest.
29+
* Binary representation of this multihash digest.
3030
*/
3131
bytes: Uint8Array
3232
}

0 commit comments

Comments
 (0)