Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion interfaces/13-io/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func main() {
}

// ioCopy streams from a file to another file.
// we use it to stream from the standard input to ouput.
// we use it to stream from the standard input to output.
func ioCopy(dst, src *os.File) error {
// Use a fixed-length buffer to efficiently read from src stream in chunks.
buf := make([]byte, 32768)
Expand Down
2 changes: 1 addition & 1 deletion interfaces/14-io-reusable/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func transfer() (n int64, err error) {
}

// ioCopy streams from a file to another file.
// we use it to stream from the standard input to ouput.
// we use it to stream from the standard input to output.
func ioCopy(dst, src *os.File) error {
// Use a fixed-length buffer to efficiently read from src stream in chunks.
buf := make([]byte, 32768)
Expand Down
2 changes: 1 addition & 1 deletion x-tba/slicing-allocs-gotcha/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func report() {
r()

runtime.GC()
fmt.Print(" > After Garbage Colletion : ")
fmt.Print(" > After Garbage Collection : ")
r()
}

Expand Down