From 61640b099a2bb764af2fc89f7411c3705dd62f6d Mon Sep 17 00:00:00 2001 From: Wang Long Date: Tue, 3 Jan 2017 15:01:50 +0800 Subject: [PATCH] Fix the outdated comment for Error interface Signed-off-by: Wang Long --- libcontainer/error.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libcontainer/error.go b/libcontainer/error.go index b0639270..21a3789b 100644 --- a/libcontainer/error.go +++ b/libcontainer/error.go @@ -60,9 +60,9 @@ func (c ErrorCode) String() string { type Error interface { error - // Returns a verbose string including the error message - // and a representation of the stack trace suitable for - // printing. + // Returns an error if it failed to write the detail of the Error to w. + // The detail of the Error may include the error message and a + // representation of the stack trace. Detail(w io.Writer) error // Returns the error code for this error.