Skip to content

Commit b7eedd7

Browse files
committed
chore: pr feedback - fix typos
1 parent 6c13cd6 commit b7eedd7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

soroban-ledger-snapshot/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ pub struct LedgerSnapshot {
4242
ledger_entries: LedgerEntries,
4343
}
4444

45-
/// Extended ledger entry that includes the live util ledger sequence. Provides a more compact
45+
/// Extended ledger entry that includes the live until ledger sequence. Provides a more compact
4646
/// form of the entry storage, to reduce the size of the snapshot when serialized to JSON.
4747
#[derive(Debug, Clone, serde::Deserialize)]
4848
struct LedgerEntryExt {
4949
entry: Box<LedgerEntry>,
5050
live_until: Option<u32>,
5151
}
5252

53-
/// Extended ledger entry that includes the live util ledger sequence, and the entry by reference.
53+
/// Extended ledger entry that includes the live until ledger sequence, and the entry by reference.
5454
/// Used to reduce memory usage during serialization.
5555
#[derive(serde::Serialize)]
5656
struct LedgerEntryExtRef<'a> {

soroban-ledger-snapshot/src/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ fn test_set_and_update_entries() {
100100
// Update existing with new live_until
101101
(
102102
Rc::new((**entries[0].0).clone()),
103-
Some((Rc::new((*entries[0].1 .0).clone()), Some(99))),
103+
Some((Rc::new((*entries[0].1.0).clone()), Some(99))),
104104
),
105105
// Add new entry
106106
(
107107
Rc::new((**entries[2].0).clone()),
108-
Some((Rc::new((*entries[2].1 .0).clone()), entries[2].1 .1)),
108+
Some((Rc::new((*entries[2].1.0).clone()), entries[2].1.1)),
109109
),
110110
];
111111
snapshot.update_entries(&updates);

0 commit comments

Comments
 (0)