Skip to content

Commit

Permalink
🔧 Fixed docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nwrenger committed Aug 17, 2024
1 parent 51a129f commit c0654da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ struct Age {
#[derive(Serialize, Deserialize, Default)]
struct AgeInner {
// Thats quite big and also supported
/// It gets converted as a string on the TypeScript side
/// because a ts `number` cannot be greater than 64 bits
/// This gets converted to a `string` on the TypeScript side
/// because `numbers` there cannot be greater than 64 bits
age: u128,
}

Expand Down
4 changes: 2 additions & 2 deletions tests/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ namespace api {

export interface AgeInner {
/**
It gets converted as a string on the TypeScript side
because a ts `number` cannot be greater than 64 bits
This gets converted to a `string` on the TypeScript side
because `numbers` there cannot be greater than 64 bits
*/
age: string;
}
Expand Down
4 changes: 2 additions & 2 deletions tests/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ struct Age {
#[derive(Serialize, Deserialize, Default)]
struct AgeInner {
// Thats quite big and also supported
/// It gets converted as a string on the TypeScript side
/// because a ts `number` cannot be greater than 64 bits
/// This gets converted to a `string` on the TypeScript side
/// because `numbers` there cannot be greater than 64 bits
age: u128,
}

Expand Down

0 comments on commit c0654da

Please sign in to comment.