Skip to content

Commit 0ad26e0

Browse files
authored
chore: fix function name in comment (#3225)
Signed-off-by: xixishidibei <[email protected]>
1 parent c222a90 commit 0ad26e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/webserver/webserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ func writeJSON(w http.ResponseWriter, thing any) {
11371137
writeJSONWithStatus(w, thing, http.StatusOK)
11381138
}
11391139

1140-
// writeJSON writes marshals the provided interface and writes the bytes to the
1140+
// writeJSONWithStatus writes marshals the provided interface and writes the bytes to the
11411141
// ResponseWriter with the specified response code.
11421142
func writeJSONWithStatus(w http.ResponseWriter, thing any, code int) {
11431143
w.Header().Set("Content-Type", "application/json; charset=utf-8")

server/coinlock/coinlocker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (bl *bookLocker) LockOrdersCoins(orders []order.Order) []order.Order {
9898
return bl.bookLock.LockOrdersCoins(orders)
9999
}
100100

101-
// LockOrdersCoins locks coins associated with certain orders.
101+
// LockCoins locks coins associated with certain orders.
102102
func (bl *bookLocker) LockCoins(orderCoins map[order.OrderID][]CoinID) map[order.OrderID][]CoinID {
103103
return bl.bookLock.LockCoins(orderCoins)
104104
}

0 commit comments

Comments
 (0)