Skip to content

Commit

Permalink
chore: remove repetitive words (MystenLabs#17148)
Browse files Browse the repository at this point in the history
## Description 
remove repetitive words

## Test plan 

No need

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [x] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:

---------

Signed-off-by: StevenMia <[email protected]>
Co-authored-by: Michael Hayes <[email protected]>
  • Loading branch information
StevenMia and hayes-mysten authored Apr 15, 2024
1 parent abbf3a3 commit c92c34d
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ module.exports = {
'external-crates',
'storybook-static',
'.next',
'sdk/docs/public/typedoc',
],
rules: {
'no-case-declarations': 'off',
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-framework/docs/deepbook/critbit.md
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ title: Module `0xdee9::critbit`

<b>if</b> (removed_leaf_grand_parent_index == <a href="critbit.md#0xdee9_critbit_PARTITION_INDEX">PARTITION_INDEX</a>) {
// Parent of the removed leaf is the tree root
// Update the parent of the sibling node and and set sibling <b>as</b> the tree root
// Update the parent of the sibling node and set sibling <b>as</b> the tree root
<b>if</b> (sibling_index &lt; <a href="critbit.md#0xdee9_critbit_PARTITION_INDEX">PARTITION_INDEX</a>) {
// sibling is an <b>internal</b> node
<a href="../sui-framework/table.md#0x2_table_borrow_mut">table::borrow_mut</a>(&<b>mut</b> tree.internal_nodes, sibling_index).parent = <a href="critbit.md#0xdee9_critbit_PARTITION_INDEX">PARTITION_INDEX</a>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ module deepbook::critbit {

if (removed_leaf_grand_parent_index == PARTITION_INDEX) {
// Parent of the removed leaf is the tree root
// Update the parent of the sibling node and and set sibling as the tree root
// Update the parent of the sibling node and set sibling as the tree root
if (sibling_index < PARTITION_INDEX) {
// sibling is an internal node
table::borrow_mut(&mut tree.internal_nodes, sibling_index).parent = PARTITION_INDEX;
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-json-rpc/src/indexer_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ impl<R: ReadApiServer> IndexerApiServer for IndexerApi<R> {
let name_record = NameRecord::try_from(object)?;

// Handling SLD names & node subdomains is the same (we handle them as `node` records)
// We check their expiration, and and if not expired, return the target address.
// We check their expiration, and if not expired, return the target address.
if !name_record.is_leaf_record() {
return if !name_record.is_node_expired(current_timestamp_ms) {
Ok(name_record.target_address)
Expand Down
4 changes: 2 additions & 2 deletions sdk/bcs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ built-in primitives, such as `string` or `u64`). There are no type hints in the
what they mean, so the schema used for decoding must match the schema used to encode the data.

The `@mysten/bcs` library can be used to define schemas that can serialize and deserialize BCS
encoded data, and and can infer the correct TypeScript for the schema from the definitions
themselves rather than having to define them manually.
encoded data, and can infer the correct TypeScript for the schema from the definitions themselves
rather than having to define them manually.

## Basic types

Expand Down
1 change: 1 addition & 0 deletions sdk/docs/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CHANGELOG.md
.next
public/typedoc
4 changes: 2 additions & 2 deletions sdk/docs/pages/bcs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ built-in primitives, such as `string` or `u64`). There are no type hints in the
what they mean, so the schema used for decoding must match the schema used to encode the data.

The `@mysten/bcs` library can be used to define schemas that can serialize and deserialize BCS
encoded data, and and can infer the correct TypeScript for the schema from the definitions
themselves rather than having to define them manually.
encoded data, and can infer the correct TypeScript for the schema from the definitions themselves
rather than having to define them manually.

## Basic types

Expand Down

0 comments on commit c92c34d

Please sign in to comment.