@@ -206,7 +206,7 @@ contract OpCodes {
206206
207207 assembly {
208208 let x := mload (0x40 ) //Find empty storage location using "free memory pointer"
209- mstore (x,sig) //Place signature at begining of empty storage
209+ mstore (x,sig) //Place signature at beginning of empty storage
210210 mstore (add (x,0x04 ),a) // first address parameter. just after signature
211211 mstore (add (x,0x24 ),a) // 2nd address parameter - first padded. add 32 bytes (not 20 bytes)
212212 mstore (0x40 ,add (x,0x64 )) // this is missing in other examples. Set free pointer before function call. so it is used by called function.
@@ -225,7 +225,7 @@ contract OpCodes {
225225 //callcode
226226 assembly {
227227 let x := mload (0x40 ) //Find empty storage location using "free memory pointer"
228- mstore (x,sig) //Place signature at begining of empty storage
228+ mstore (x,sig) //Place signature at beginning of empty storage
229229 mstore (add (x,0x04 ),a) // first address parameter. just after signature
230230 mstore (add (x,0x24 ),a) // 2nd address parameter - first padded. add 32 bytes (not 20 bytes)
231231 mstore (0x40 ,add (x,0x64 )) // this is missing in other examples. Set free pointer before function call. so it is used by called function.
@@ -244,7 +244,7 @@ contract OpCodes {
244244 //delegatecall
245245 assembly {
246246 let x := mload (0x40 ) //Find empty storage location using "free memory pointer"
247- mstore (x,sig) //Place signature at begining of empty storage
247+ mstore (x,sig) //Place signature at beginning of empty storage
248248 mstore (add (x,0x04 ),a) // first address parameter. just after signature
249249 mstore (add (x,0x24 ),a) // 2nd address parameter - first padded. add 32 bytes (not 20 bytes)
250250 mstore (0x40 ,add (x,0x64 )) // this is missing in other examples. Set free pointer before function call. so it is used by called function.
0 commit comments