api: Comment and File Formatting
Clarified comment for platformHostConfigOverride for easier reading.
Fixed file endings.
@@ -56,10 +56,10 @@ func getCanonicalPath(path string) string {
// platformHostConfigOverride Sets up default HostConfig options to be passed to Docker API.
// Docker for Windows treats some options different than Unix and some are not supported at all.
-// Version 1.12.x of Docker for Windows would ignore unsupported values such as MemorySwappiness.
-// Version 17.03.x will cause an error if any value other than -1 is passed in. This bug is not
-// noticed when no value is passed in. However, the go-dockerclient client version we are using
-// removed the json option omitempty causing this parameter to default to 0 if empty.
+// Version 1.12.x of Docker for Windows would ignore the unsupported option MemorySwappiness.
+// Version 17.03.x will cause an error if any value other than -1 is passed in for MemorySwappiness.
+// This bug is not noticed when no value is passed in. However, the go-dockerclient client version
+// we are using removed the json option omitempty causing this parameter to default to 0 if empty.
// https://github.com/fsouza/go-dockerclient/commit/72342f96fabfa614a94b6ca57d987eccb8a836bf
func (task *Task) platformHostConfigOverride(hostConfig *docker.HostConfig) {
hostConfig.MemorySwappiness = memorySwappinessDefault
