Update doc for AsyncExtracter::new

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-09 22:22:39 +10:00
parent 8a812c8d22
commit 00242a40c6
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -182,8 +182,8 @@ impl AsyncExtracter {
/// * `fmt` - The format of the archive to feed in. /// * `fmt` - The format of the archive to feed in.
/// * `desired_outputs - If Some(_), then it will filter the tar and /// * `desired_outputs - If Some(_), then it will filter the tar and
/// only extract files specified in it. /// only extract files specified in it.
/// Note that it only works when `fmt` is not `PkgFmt::Bin` or /// Note that this is a best-effort and it only works when `fmt`
/// `PkgFmt::Zip`. /// is not `PkgFmt::Bin` or `PkgFmt::Zip`.
pub fn new<const N: usize>( pub fn new<const N: usize>(
path: &Path, path: &Path,
fmt: PkgFmt, fmt: PkgFmt,