Skip to content

Commit

Permalink
Merge pull request kubernetes#2779 from AdamDang/patch-3
Browse files Browse the repository at this point in the history
Typo fix: occured->occurred
  • Loading branch information
k8s-ci-robot committed May 1, 2018
2 parents b25f827 + d67ba6e commit 030691e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions third_party/go9p/srv_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ type FWstatOp interface {
// If the FReadOp interface is implemented, the Read operation will be called
// to read from the file. If not implemented, "permission denied" error will
// be send back. The operation returns the number of bytes read, or the
// error occured while reading.
// error occurred while reading.
type FReadOp interface {
Read(fid *FFid, buf []byte, offset uint64) (int, error)
}

// If the FWriteOp interface is implemented, the Write operation will be called
// to write to the file. If not implemented, "permission denied" error will
// be send back. The operation returns the number of bytes written, or the
// error occured while writing.
// error occurred while writing.
type FWriteOp interface {
Write(fid *FFid, data []byte, offset uint64) (int, error)
}
Expand All @@ -47,15 +47,15 @@ type FWriteOp interface {
// when the client attempts to create a file in the srvFile implementing the interface.
// If not implemented, "permission denied" error will be send back. If successful,
// the operation should call (*File)Add() to add the created file to the directory.
// The operation returns the created file, or the error occured while creating it.
// The operation returns the created file, or the error occurred while creating it.
type FCreateOp interface {
Create(fid *FFid, name string, perm uint32) (*srvFile, error)
}

// If the FRemoveOp interface is implemented, the Remove operation will be called
// when the client attempts to create a file in the srvFile implementing the interface.
// If not implemented, "permission denied" error will be send back.
// The operation returns nil if successful, or the error that occured while removing
// The operation returns nil if successful, or the error that occurred while removing
// the file.
type FRemoveOp interface {
Remove(*FFid) error
Expand Down

0 comments on commit 030691e

Please sign in to comment.