mirror of
https://github.com/vlang/v.git
synced 2025-08-03 09:47:15 -04:00
archive.tar: fix type in new_compressor fn name (#25006)
This commit is contained in:
parent
a8d75c10b5
commit
75417c55fc
@ -149,7 +149,7 @@ fn main() {
|
||||
ctx: ctx
|
||||
}
|
||||
mut untar := tar.new_untar(reader)
|
||||
mut decompressor := tar.new_decompresor(untar)
|
||||
mut decompressor := tar.new_decompressor(untar)
|
||||
downloader := new_downloader(ctx.url)!
|
||||
if ctx.chunks {
|
||||
decompressor.read_chunks(downloader.data)!
|
||||
|
@ -177,7 +177,7 @@ mut:
|
||||
|
||||
// new_decompressor returns a Decompressor to decompress a tar.gz file
|
||||
// A given Untar with a registered Reader will read the blocks.
|
||||
pub fn new_decompresor(untar &Untar) &Decompressor {
|
||||
pub fn new_decompressor(untar &Untar) &Decompressor {
|
||||
return &Decompressor{
|
||||
untar: untar
|
||||
}
|
||||
|
@ -108,7 +108,7 @@ fn new_test_reader_gz(tar_gz_file string, debug bool) !&TestReader {
|
||||
mut untar := Untar{
|
||||
reader: reader
|
||||
}
|
||||
mut decompressor := new_decompresor(untar)
|
||||
mut decompressor := new_decompressor(untar)
|
||||
tar_gz := os.read_bytes('${testdata}/${tar_gz_file}')!
|
||||
decompressor.read_all(tar_gz)!
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user