From cff7f9704b861e8d8039bc1b7042ee1ec7a8d3f1 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Thu, 20 Feb 2014 11:19:48 -0600 Subject: [PATCH] Fix a few comment typos. --- address.go | 2 +- script.go | 2 +- scriptbuilder.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/address.go b/address.go index f0f0eae0..b23f1b32 100644 --- a/address.go +++ b/address.go @@ -40,7 +40,7 @@ func ExtractPkScriptAddrs(pkScript []byte, net btcwire.BitcoinNet) (ScriptClass, case PubKeyTy: // A pay-to-pubkey script is of the form: // OP_CHECKSIG - // Therefore the pubkey is the item on the stack. + // Therefore the pubkey is the first item on the stack. // Skip the pubkey if it's invalid for some reason. requiredSigs = 1 addr, err := btcutil.NewAddressPubKey(pops[0].data, net) diff --git a/script.go b/script.go index bd3b90cb..4baa5850 100644 --- a/script.go +++ b/script.go @@ -1122,7 +1122,7 @@ func signatureScriptCustomReader(reader io.Reader, tx *btcwire.MsgTx, idx int, // expectedInputs returns the number of arguments required by a script. // If the script is of unnown type such that the number can not be determined -// then -1 is returned. We are an interanl function and thus assume that class +// then -1 is returned. We are an internal function and thus assume that class // is the real class of pops (and we can thus assume things that were // determined while finding out the type). func expectedInputs(pops []parsedOpcode, class ScriptClass) int { diff --git a/scriptbuilder.go b/scriptbuilder.go index d7980621..b4f2c838 100644 --- a/scriptbuilder.go +++ b/scriptbuilder.go @@ -19,7 +19,7 @@ const ( ) // ScriptBuilder provides a facility for building custom scripts. It allows -// you to push opcodes, ints, and, data while respecting canonical encoding. It +// you to push opcodes, ints, and data while respecting canonical encoding. It // does not ensure the script will execute correctly. // // For example, the following would build a 2-of-3 multisig script for usage in