From 8afb978c816ad082b4aa159196099b47cef567b5 Mon Sep 17 00:00:00 2001 From: hidewrong Date: Wed, 17 Apr 2024 11:19:31 +0800 Subject: [PATCH] chore: fix struct names Signed-off-by: hidewrong --- autopilot/choice_test.go | 2 +- contractcourt/nursery_store.go | 2 +- input/input.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/autopilot/choice_test.go b/autopilot/choice_test.go index bde48b0da..c08d87a35 100644 --- a/autopilot/choice_test.go +++ b/autopilot/choice_test.go @@ -21,7 +21,7 @@ func TestWeightedChoiceEmptyMap(t *testing.T) { } } -// singeNonZero is a type used to generate float64 slices with one non-zero +// singleNonZero is a type used to generate float64 slices with one non-zero // element. type singleNonZero []float64 diff --git a/contractcourt/nursery_store.go b/contractcourt/nursery_store.go index 3dc3416f7..b06371f2d 100644 --- a/contractcourt/nursery_store.go +++ b/contractcourt/nursery_store.go @@ -75,7 +75,7 @@ import ( // graduated height and finalized txes. This also prevents people downgrading // and surprising the downgraded nursery with missing data. -// NurseryStore abstracts the persistent storage layer for the utxo nursery. +// NurseryStorer abstracts the persistent storage layer for the utxo nursery. // Concretely, it stores commitment and htlc outputs until any time-bounded // constraints have fully matured. The store exposes methods for enumerating its // contents, and persisting state transitions detected by the utxo nursery. diff --git a/input/input.go b/input/input.go index fe7971eed..211d0d053 100644 --- a/input/input.go +++ b/input/input.go @@ -329,7 +329,7 @@ func (h *HtlcSucceedInput) CraftInputScript(signer Signer, txn *wire.MsgTx, }, nil } -// HtlcsSecondLevelAnchorInput is an input type used to spend HTLC outputs +// HtlcSecondLevelAnchorInput is an input type used to spend HTLC outputs // using a re-signed second level transaction, either via the timeout or success // paths. type HtlcSecondLevelAnchorInput struct {