Skip to content

Commit 6e0aad3

Browse files
committed
fix: Rename #save(io) -> #write
1 parent 8974a0f commit 6e0aad3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/binary_parser.cr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ class BinaryParser
1515

1616
def save(filename : String)
1717
io = File.open(filename, "w")
18-
save(io)
18+
write(io)
1919
end
2020

2121
def to_s(io : IO)
22-
save(io)
22+
write(io)
2323
end
2424

25-
def save(io : IO)
25+
def write(io : IO)
2626
{% for method in @type.methods %}
2727
{% if method.name.starts_with?("_write_") %}
2828
{{method.name}}(io)
@@ -37,7 +37,7 @@ class BinaryParser
3737
end
3838

3939
def to_io(io : IO, format : IO::ByteFormat)
40-
save(io)
40+
write(io)
4141
end
4242

4343
macro uint32(name)

0 commit comments

Comments
 (0)