Skip to content

Commit

Permalink
readme fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NachE committed Aug 6, 2024
1 parent 628604c commit 9f58885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ err = scpClient.CopyDirToRemote("/path/to/local/dir", "/path/to/remote/dir", do)
### Progress
```go
// Defines an anonymous function for ReceivePassthrough that conf the
// Writer attribute of ReceiveJob to track and display the upload
// Writer attribute of PassthroughCopy to track and display the upload
// progress. The new Writer writes data to the original writer, calculates
// the upload progress, and prints it as a percentage.

Expand All @@ -180,7 +180,7 @@ func (p *Progress) Close() error {

do := &scp.DirTransferOption{
Passthrough = func(pt PassthroughCopy) (PassthroughCopy, bool) {
progress = Progress{TotalSize: pt.Size}
progress = &Progress{TotalSize: pt.Size}
pt.Writer = progress
}
}
Expand Down

0 comments on commit 9f58885

Please sign in to comment.