Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some comments #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Fix some comments
Signed-off-by: pullmerge <[email protected]>
pullmerge committed Apr 14, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 9f78a58e59adbfc0471bb5990ea9bf9c2967651b
2 changes: 1 addition & 1 deletion interfaces/13-io/main.go
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion interfaces/14-io-reusable/main.go
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion x-tba/slicing-allocs-gotcha/main.go
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ func report() {
r()

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