mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
archive.tar: fix type in new_compressor fn name (#25006)
Some checks are pending
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
Some checks are pending
Graphics CI / gg-regressions (push) Waiting to run
vlib modules CI / build-module-docs (push) Waiting to run
Shy and PV CI / v-compiles-puzzle-vibes (push) Waiting to run
sdl CI / v-compiles-sdl-examples (push) Waiting to run
Time CI / time-linux (push) Waiting to run
Time CI / time-macos (push) Waiting to run
Time CI / time-windows (push) Waiting to run
toml CI / toml-module-pass-external-test-suites (push) Waiting to run
Tools CI / tools-linux (clang) (push) Waiting to run
Tools CI / tools-linux (gcc) (push) Waiting to run
Tools CI / tools-linux (tcc) (push) Waiting to run
Tools CI / tools-macos (clang) (push) Waiting to run
Tools CI / tools-windows (gcc) (push) Waiting to run
Tools CI / tools-windows (msvc) (push) Waiting to run
Tools CI / tools-windows (tcc) (push) Waiting to run
Tools CI / tools-docker-ubuntu-musl (push) Waiting to run
vab CI / vab-compiles-v-examples (push) Waiting to run
vab CI / v-compiles-os-android (push) Waiting to run
This commit is contained in:
parent
a8d75c10b5
commit
75417c55fc
3 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue