interfaces/builtin: reduce duplication and remove cruft in Sanitize{Plug,Slot} #3619

Merged
merged 16 commits into from Jul 28, 2017
Prev

interfaces: reword {Plug,Slot}Sanitizer documentation

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
  • Loading branch information...
commit f6fb74af3fcbcea7caa72ee645c169f9f33f962d @zyga zyga committed Jul 28, 2017
View
@@ -156,12 +156,12 @@ type Interface interface {
AutoConnect(plug *Plug, slot *Slot) bool
}
-// PlugSanitizer describes an interface that can sanitize plug instances.
+// PlugSanitizer can be implemented by Interfaces that have reasons to sanitize their plugs.
type PlugSanitizer interface {
SanitizePlug(plug *Plug) error
}
-// SlotSanitizer describes an interface that can sanitize slot instances.
+// SlotSanitizer can be implemented by Interfaces that have reasons to sanitize their slots.
type SlotSanitizer interface {
SanitizeSlot(slot *Slot) error
}