Skip to content

Commit 54e0169

Browse files
docs: fix a/an grammar errors in documentation (#7491)
**Description**: This PR fixes minor grammar errors found in the documentation: **Documentation fixes:** - Fixed "an the" → "the" in storage-vec documentation - Fixed "an ContractId" → "a ContractId" (ContractId starts with consonant sound) - Fixed "an Contract" → "a Contract" <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Fixes incorrect articles in docs ("an"→"a" and "an the"→"the") across asset mint, ContractId, and StorageVec pages. > > - **Documentation**: > - Correct article usage in: > - `docs/reference/src/documentation/operations/asset/mint/contract.md` ("a Contract"). > - `docs/reference/src/documentation/operations/namespace/contract-id.md` ("a ContractId"). > - `docs/reference/src/documentation/operations/storage/libraries/storage-vec.md` ("the" instead of "an the"). > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 3106eec. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> Co-authored-by: Joshua Batty <[email protected]>
1 parent d7d5099 commit 54e0169

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/reference/src/documentation/operations/asset/mint/contract.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Mint to Contract
22

3-
We can [`mint`](mint.md) and [`transfer`](../transfer/index.md) the asset to an [`Contract`](../../namespace/contract-id.md).
3+
We can [`mint`](mint.md) and [`transfer`](../transfer/index.md) the asset to a [`Contract`](../../namespace/contract-id.md).
44

55
To use the function we must import it.
66

docs/reference/src/documentation/operations/namespace/contract-id.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `ContractId` type is a struct containing a value of a `b256` type.
88
{{#include ../../../code/operations/namespace/src/lib.sw:contract_id}}
99
```
1010

11-
Casting between an `ContractId` and `b256` can be done in the following way:
11+
Casting between a `ContractId` and `b256` can be done in the following way:
1212

1313
```sway
1414
{{#include ../../../code/operations/namespace/src/lib.sw:contract_id_cast}}

docs/reference/src/documentation/operations/storage/libraries/storage-vec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ In this example we look at how we can retrieve a single value `balance` and how
3030

3131
Writing to storage is similar to [reading](#reading-from-storage). The difference is that we use a different method `.push(value)` and we use the `read` keyword because the implementation reads the length of the vector to determine where to store the value.
3232

33-
In this example we insert a [tuple](../../../language/built-ins/tuples.md) containing an the [`Identity`](../../namespace/identity.md) of the caller and some `id` into the vector.
33+
In this example we insert a [tuple](../../../language/built-ins/tuples.md) containing the [`Identity`](../../namespace/identity.md) of the caller and some `id` into the vector.
3434

3535
```sway
3636
{{#include ../../../../code/operations/storage/storage_vec/src/main.sw:writing_to_storage}}

0 commit comments

Comments
 (0)