mirror of
https://github.com/minio/minio.git
synced 2025-04-20 02:27:50 -04:00
Misspell warnings fix (#2001)
This commit is contained in:
parent
0d3a9c9438
commit
ce7d5eddbc
@ -86,7 +86,7 @@ func generateBytesData(size int) []byte {
|
||||
b = letterBytes[rand.Intn(len(letterBytes))]
|
||||
return []byte{b}
|
||||
}
|
||||
// repeat the random character choosen size
|
||||
// repeat the random character chosen size.
|
||||
return bytes.Repeat(getRandomByte(), size)
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ func getOrderedDisks(distribution []int, disks []StorageAPI, blockCheckSums []ch
|
||||
return orderedDisks, orderedBlockCheckSums
|
||||
}
|
||||
|
||||
// Return readable disks slice from which we can read parallely.
|
||||
// Return readable disks slice from which we can read parallelly.
|
||||
func getReadDisks(orderedDisks []StorageAPI, index int, dataBlocks int) (readDisks []StorageAPI, nextIndex int, err error) {
|
||||
readDisks = make([]StorageAPI, len(orderedDisks))
|
||||
dataDisks := 0
|
||||
|
@ -168,7 +168,7 @@ func (n networkStorage) StatFile(volume, path string) (fileInfo FileInfo, err er
|
||||
return fileInfo, nil
|
||||
}
|
||||
|
||||
// ReadAll - reads entire contents of the file at path until EOF, retuns the
|
||||
// ReadAll - reads entire contents of the file at path until EOF, returns the
|
||||
// contents in a byte slice. Returns buf == nil if err != nil.
|
||||
// This API is meant to be used on files which have small memory footprint, do
|
||||
// not use this on large files as it would cause server to crash.
|
||||
|
Loading…
x
Reference in New Issue
Block a user