rbd: improve doc comment style for close

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2019-12-16 13:56:59 -05:00 committed by Niels de Vos
parent e63f863edb
commit 317feb322a
1 changed files with 4 additions and 1 deletions

View File

@ -486,6 +486,9 @@ func (image *Image) Open(args ...interface{}) error {
return GetError(ret) return GetError(ret)
} }
// Close an open rbd image.
//
// Implements:
// int rbd_close(rbd_image_t image); // int rbd_close(rbd_image_t image);
func (image *Image) Close() error { func (image *Image) Close() error {
if err := image.validate(imageIsOpen); err != nil { if err := image.validate(imageIsOpen); err != nil {