From 6425680d94c58359359092db6adb169117aaead5 Mon Sep 17 00:00:00 2001 From: kevinetc123 Date: Thu, 9 Feb 2017 17:30:21 +0800 Subject: [PATCH] use bitclear instead of seperating them and fix some typo Signed-off-by: kevinetc123 --- mount.go | 2 +- sys/prctl.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mount.go b/mount.go index 29122ff51..f41cac616 100644 --- a/mount.go +++ b/mount.go @@ -86,7 +86,7 @@ func parseMountOptions(options []string) (int, string) { // then it is a data value for a specific fs type if f, exists := flags[o]; exists && f.flag != 0 { if f.clear { - flag &= ^f.flag + flag &^= f.flag } else { flag |= f.flag } diff --git a/sys/prctl.go b/sys/prctl.go index 27157736b..075c476ed 100644 --- a/sys/prctl.go +++ b/sys/prctl.go @@ -26,7 +26,7 @@ const prSetChildSubreaper = 36 // PR_GET_CHILD_SUBREAPER allows retrieving the current child // subreaper. -// Return the "child subreaper" setting of the caller, in the +// Returns the "child subreaper" setting of the caller, in the // location pointed to by (int *) arg2. const prGetChildSubreaper = 37