Fix typos (#183)

Co-authored-by: Cristian Maglie <c.maglie@bug.st>
This commit is contained in:
Andreas Deininger
2024-06-24 17:33:18 +02:00
committed by GitHub
parent c18d387887
commit 0b7848559a
4 changed files with 9 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ func (p *Pipe) ReadFD() int {
return p.rd
}
// WriteFD returns the flie handle for the write side of the pipe.
// WriteFD returns the file handle for the write side of the pipe.
func (p *Pipe) WriteFD() int {
if !p.opened {
return -1
@@ -48,7 +48,7 @@ func (p *Pipe) WriteFD() int {
return p.wr
}
// Write to the pipe the content of data. Returns the numbre of bytes written.
// Write to the pipe the content of data. Returns the number of bytes written.
func (p *Pipe) Write(data []byte) (int, error) {
if !p.opened {
return 0, fmt.Errorf("Pipe not opened")