Apply suggestions from code review

Review suggestions in the documentation

Co-authored-by: Leo Antunes <leo@costela.net>
This commit is contained in:
kaiyou
2020-05-10 16:38:28 +02:00
committed by Leo Antunes
parent faf1c35d96
commit 9ddcbb7914
2 changed files with 7 additions and 7 deletions

View File

@ -87,7 +87,7 @@ func (s *State) DownInterface() error {
return netlink.LinkDel(link)
}
// SetUpInterface creates and setup the associated network interface
// SetUpInterface creates and sets up the associated network interface
func (s *State) SetUpInterface(nodes []common.Node) error {
if err := netlink.LinkAdd(&wireguard{LinkAttrs: netlink.LinkAttrs{Name: s.iface}}); err != nil && !os.IsExist(err) {
return errors.Wrapf(err, "could not create interface %s", s.iface)