From 951dcbe85e8e269c90770c79bfc44e32c2036d4b Mon Sep 17 00:00:00 2001 From: TianHuan Date: Mon, 20 Jul 2015 21:59:05 +0800 Subject: [PATCH] FIX incorrect usage about libnetwork.New() in README.md libnetwork.New() should return a controller and an error. The example in README.md ignore the error now, which will let the codes can not be compiled by Go. --- libnetwork/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libnetwork/README.md b/libnetwork/README.md index f43fe3c96b..90fcbe017f 100644 --- a/libnetwork/README.md +++ b/libnetwork/README.md @@ -18,7 +18,10 @@ There are many networking solutions available to suit a broad range of use-cases ```go // Create a new controller instance - controller := libnetwork.New() + controller, err := libnetwork.New() + if err != nil { + return + } // Select and configure the network driver networkType := "bridge"