Skip to content

Commit

Permalink
Typo Update tables-bags.mdx (#20372)
Browse files Browse the repository at this point in the history
**Description**:

I have corrected a minor grammatical issue in the text. Specifically, in
the sentence:

**"The relationship between `Table` and `ObjectTable`, and `Bag` and
`ObjectBag` are the same as between a field and an object field..."**

The phrase "are the same" should be replaced with "is the same" because
"relationship" is a singular noun, and the verb should agree with it.

**Fixed sentence**:

**"The relationship between `Table` and `ObjectTable`, and `Bag` and
`ObjectBag` is the same as between a field and an object field..."**

This correction ensures proper subject-verb agreement, which is
important for maintaining grammatical accuracy and clarity in the
documentation.
  • Loading branch information
defitricks authored Nov 25, 2024
1 parent e6209b7 commit 5da94f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/concepts/dynamic-fields/tables-bags.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ You can extend existing objects using [dynamic fields](../dynamic-fields.mdx). N

This topic describes two such collections -- Table and Bag -- built using dynamic fields, but with additional support to count the number of entries they contain, and protect against accidental deletion when non-empty.

The types and function discussed in this section are built into the Sui framework in modules [`table`](https://github.com/MystenLabs/sui/tree/main/crates/sui-framework/packages/sui-framework/sources/table.move) and [`bag`](https://github.com/MystenLabs/sui/tree/main/crates/sui-framework/packages/sui-framework/sources/bag.move). As with dynamic fields, there is also an `object_` variant of both: `ObjectTable` in [`object_table`](https://github.com/MystenLabs/sui/tree/main/crates/sui-framework/packages/sui-framework/sources/object_table.move) and `ObjectBag` in [`object_bag`](https://github.com/MystenLabs/sui/tree/main/crates/sui-framework/packages/sui-framework/sources/object_bag.move). The relationship between `Table` and `ObjectTable`, and `Bag` and `ObjectBag` are the same as between a field and an object field: The former can hold any `store` type as a value, but objects stored as values are hidden when viewed from external storage. The latter can only store objects as values, but keeps those objects visible at their ID in external storage.
The types and function discussed in this section are built into the Sui framework in modules [`table`](https://github.com/MystenLabs/sui/tree/main/crates/sui-framework/packages/sui-framework/sources/table.move) and [`bag`](https://github.com/MystenLabs/sui/tree/main/crates/sui-framework/packages/sui-framework/sources/bag.move). As with dynamic fields, there is also an `object_` variant of both: `ObjectTable` in [`object_table`](https://github.com/MystenLabs/sui/tree/main/crates/sui-framework/packages/sui-framework/sources/object_table.move) and `ObjectBag` in [`object_bag`](https://github.com/MystenLabs/sui/tree/main/crates/sui-framework/packages/sui-framework/sources/object_bag.move). The relationship between `Table` and `ObjectTable`, and `Bag` and `ObjectBag` is the same as between a field and an object field: The former can hold any `store` type as a value, but objects stored as values are hidden when viewed from external storage. The latter can only store objects as values, but keeps those objects visible at their ID in external storage.


### Tables
Expand Down

0 comments on commit 5da94f1

Please sign in to comment.