merge: fix spelling of length
authorOlle Lundberg <geek@nerd.sh>
Fri, 28 Feb 2014 02:28:12 +0100
changeset 20607 abd448767465
parent 20606 be140ebd506b
child 20608 a3ca1d032926
merge: fix spelling of length
mercurial/merge.py
--- a/mercurial/merge.py	Mon Feb 10 07:13:10 2014 +0400
+++ b/mercurial/merge.py	Fri Feb 28 02:28:12 2014 +0100
@@ -34,7 +34,7 @@
         [type][length][content]
 
     Type is a single character, length is a 4 bytes integer, content is an
-    arbitrary suites of bytes of lenght `length`.
+    arbitrary suites of bytes of length `length`.
 
     Type should be a letter. Capital letter are mandatory record, Mercurial
     should abort if they are unknown. lower case record can be safely ignored.
@@ -125,10 +125,10 @@
             while off < end:
                 rtype = data[off]
                 off += 1
-                lenght = _unpack('>I', data[off:(off + 4)])[0]
+                length = _unpack('>I', data[off:(off + 4)])[0]
                 off += 4
-                record = data[off:(off + lenght)]
-                off += lenght
+                record = data[off:(off + length)]
+                off += length
                 records.append((rtype, record))
             f.close()
         except IOError, err: