Skip to content

Commit ec0f280

Browse files
fixes typos (#163)
* fixes typos line 86: directly follow -> directly followed line 142: removes "it" line 175: stored -> store line 191: is -> are - adds comma before etc * Update pages/en/developer/assemblyscript-api.mdx Co-authored-by: Benoît Rouleau <benoit.rouleau@icloud.com> Co-authored-by: Benoît Rouleau <benoit.rouleau@icloud.com>
1 parent c4cc7e0 commit ec0f280

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/en/developing/assemblyscript-api.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ _Operators_
8383

8484
- `equals(y: ByteArray): bool` – can be written as `x == y`.
8585
- `concat(other: ByteArray) : ByteArray` - return a new `ByteArray` consisting of `this` directly followed by `other`
86-
- `concatI32(other: i32) : ByteArray` - return a new `ByteArray` consisting of `this` directly follow by the byte representation of `other`
86+
- `concatI32(other: i32) : ByteArray` - return a new `ByteArray` consisting of `this` directly followed by the byte representation of `other`
8787

8888
#### BigDecimal
8989

@@ -139,7 +139,7 @@ _Construction_
139139

140140
- `x.toHex(): string` – turns `BigInt` into a string of hexadecimal characters.
141141
- `x.toString(): string` – turns `BigInt` into a decimal number string.
142-
- `x.toI32(): i32` – returns the `BigInt` as an `i32`; fails if it the value does not fit into `i32`. It's a good idea to first check `x.isI32()`.
142+
- `x.toI32(): i32` – returns the `BigInt` as an `i32`; fails if the value does not fit into `i32`. It's a good idea to first check `x.isI32()`.
143143
- `x.toBigDecimal(): BigDecimal` - converts into a decimal with no fractional part.
144144

145145
_Math_
@@ -172,7 +172,7 @@ _Math_
172172
import { TypedMap } from '@graphprotocol/graph-ts'
173173
```
174174

175-
`TypedMap` can be used to stored key-value pairs. See [this example](https://github.com/graphprotocol/aragon-subgraph/blob/29dd38680c5e5104d9fdc2f90e740298c67e4a31/individual-dao-subgraph/mappings/constants.ts#L51).
175+
`TypedMap` can be used to store key-value pairs. See [this example](https://github.com/graphprotocol/aragon-subgraph/blob/29dd38680c5e5104d9fdc2f90e740298c67e4a31/individual-dao-subgraph/mappings/constants.ts#L51).
176176

177177
The `TypedMap` class has the following API:
178178

@@ -188,7 +188,7 @@ The `TypedMap` class has the following API:
188188
import { Bytes } from '@graphprotocol/graph-ts'
189189
```
190190

191-
`Bytes` is used to represent arbitrary-length arrays of bytes. This includes Ethereum values of type `bytes`, `bytes32` etc.
191+
`Bytes` is used to represent arbitrary-length arrays of bytes. This includes Ethereum values of type `bytes`, `bytes32`, etc.
192192

193193
The `Bytes` class extends AssemblyScript's [Uint8Array](https://github.com/AssemblyScript/assemblyscript/blob/3b1852bc376ae799d9ebca888e6413afac7b572f/std/assembly/typedarray.ts#L64) and this supports all the `Uint8Array` functionality, plus the following new methods:
194194

0 commit comments

Comments
 (0)