mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
Merge pull request #907 from OlegChuev/main
README polishing, fixed typo in compress package docs
This commit is contained in:
commit
12ae5f8727
3 changed files with 11 additions and 9 deletions
|
@ -40,11 +40,13 @@ curl https://getcroc.schollz.com | bash
|
|||
### On macOS
|
||||
|
||||
Using [Homebrew](https://brew.sh/):
|
||||
|
||||
```bash
|
||||
brew install croc
|
||||
```
|
||||
|
||||
Using [MacPorts](https://www.macports.org/):
|
||||
|
||||
```bash
|
||||
sudo port selfupdate
|
||||
sudo port install croc
|
||||
|
|
|
@ -43,7 +43,7 @@ func compress(src []byte, dest io.Writer, level int) {
|
|||
compressor.Close()
|
||||
}
|
||||
|
||||
// compress uses flate to decompress an io.Reader
|
||||
// decompress uses flate to decompress an io.Reader
|
||||
func decompress(src io.Reader, dest io.Writer) {
|
||||
decompressor := flate.NewReader(src)
|
||||
if _, err := io.Copy(dest, decompressor); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue