archive.tar: fix type in new_compressor fn name (#25006)

This commit is contained in:
gechandesu 2025-07-30 19:49:00 +03:00 committed by GitHub
parent a8d75c10b5
commit 75417c55fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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)!

View File

@ -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
}

View File

@ -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)!