multi: comprehensive typo fixes across all packages

This commit is contained in:
practicalswift
2018-02-07 04:11:11 +01:00
committed by Olaoluwa Osuntokun
parent 72a5bc8648
commit a93736d21e
103 changed files with 435 additions and 435 deletions

View File

@@ -80,13 +80,13 @@ func mSatToNBtc(msat lnwire.MilliSatoshi) (uint64, error) {
return uint64(msat / 100), nil
}
// mSatToPBtc converts the given amount in milllisatoshis to picoBTC.
// mSatToPBtc converts the given amount in millisatoshis to picoBTC.
func mSatToPBtc(msat lnwire.MilliSatoshi) (uint64, error) {
return uint64(msat * 10), nil
}
// decodeAmount returns the amount encoded by the provided string in
// milllisatoshi.
// millisatoshi.
func decodeAmount(amount string) (lnwire.MilliSatoshi, error) {
if len(amount) < 1 {
return 0, fmt.Errorf("amount must be non-empty")

View File

@@ -84,7 +84,7 @@ func decodeBech32(bech string) (string, []byte, error) {
}
// toBytes converts each character in the string 'chars' to the value of the
// index of the correspoding character in 'charset'.
// index of the corresponding character in 'charset'.
func toBytes(chars string) ([]byte, error) {
decoded := make([]byte, 0, len(chars))
for i := 0; i < len(chars); i++ {