summaryrefslogtreecommitdiffhomepage
path: root/table/path.go
diff options
context:
space:
mode:
authorPeng Xiao <xiaoquwl@gmail.com>2016-08-18 11:00:21 +0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-21 08:29:42 +0900
commitb0bead46c891e9dcc3dd7e8d347fc460c8db78b0 (patch)
tree640b91614902905399bcfd6e49ce189ed2fb40e5 /table/path.go
parent430a4f93e8ad9afdcca11aa167ea2f5513009a0d (diff)
fixed some misspell error
Signed-off-by: Peng Xiao <xiaoquwl@gmail.com>
Diffstat (limited to 'table/path.go')
-rw-r--r--table/path.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/table/path.go b/table/path.go
index 08c92089..c75ca579 100644
--- a/table/path.go
+++ b/table/path.go
@@ -18,13 +18,14 @@ package table
import (
"bytes"
"fmt"
- log "github.com/Sirupsen/logrus"
- "github.com/osrg/gobgp/config"
- "github.com/osrg/gobgp/packet/bgp"
"math"
"net"
"sort"
"time"
+
+ log "github.com/Sirupsen/logrus"
+ "github.com/osrg/gobgp/config"
+ "github.com/osrg/gobgp/packet/bgp"
)
const (
@@ -683,7 +684,7 @@ func (path *Path) SetCommunities(communities []uint32, doReplace bool) {
}
// RemoveCommunities removes specific communities.
-// If the length of communites is 0, it does nothing.
+// If the length of communities is 0, it does nothing.
// If all communities are removed, it removes Communities path attribute itself.
func (path *Path) RemoveCommunities(communities []uint32) int {