Skip to content

Commit d23bf5e

Browse files
committed
use bytesize
1 parent 447c4ca commit d23bf5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/10-git-internals/sections/objects.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ To that first part of the header, Git adds a space followed by the size in bytes
370370

371371
[source,console]
372372
----
373-
>> header = "blob #{content.length}\0"
373+
>> header = "blob #{content.bytesize}\0"
374374
=> "blob 16\u0000"
375375
----
376376

0 commit comments

Comments
 (0)