Skip to content

Commit

Permalink
chore(sf-protos): fix code snippet in doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
suchapalaver committed Oct 16, 2024
1 parent c020398 commit 81e75bb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/sf-protos/protos/block.proto
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,9 @@ message BalanceChange {
// It is safe in those case(s) to consider the balance as being 0.
//
// If you consume this from a Substreams, you can safely use:
//
// let old_value = old_value.unwrap_or_default();
//
// ```rust,no_run
// let old_value = old_value.unwrap_or_default();
// ```
BigInt old_value = 2;

// NewValue is the balance of the address after the change. This value
Expand All @@ -677,9 +677,9 @@ message BalanceChange {
// 0.
//
// If you consume this from a Substreams, you can safely use:
//
// let new_value = new_value.unwrap_or_default();
//
// ```rust,no_run
// let new_value = new_value.unwrap_or_default();
// ```
BigInt new_value = 3;

// Reason is the reason why the balance has changed. This is useful to determine
Expand Down

0 comments on commit 81e75bb

Please sign in to comment.