Skip to content

Commit

Permalink
dag: export more things
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Feb 19, 2015
1 parent 119d5a0 commit 5c2639b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dag/edge.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type Edge interface {
Source() Vertex
Target() Vertex

hashable
Hashable
}

// BasicEdge returns an Edge implementation that simply tracks the source
Expand Down
6 changes: 3 additions & 3 deletions dag/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ type Set struct {
once sync.Once
}

// hashable is the interface used by set to get the hash code of a value.
// Hashable is the interface used by set to get the hash code of a value.
// If this isn't given, then the value of the item being added to the set
// itself is used as the comparison value.
type hashable interface {
type Hashable interface {
Hashcode() interface{}
}

Expand Down Expand Up @@ -60,7 +60,7 @@ func (s *Set) List() []interface{} {
}

func (s *Set) code(v interface{}) interface{} {
if h, ok := v.(hashable); ok {
if h, ok := v.(Hashable); ok {
return h.Hashcode()
}

Expand Down

0 comments on commit 5c2639b

Please sign in to comment.