1
1
Fork 0
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:
Zack 2025-04-12 11:09:56 -07:00 committed by GitHub
commit 12ae5f8727
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 9 deletions

View file

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

View file

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