rbd: improve doc comment style for flatten

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2019-12-16 14:20:22 -05:00 committed by Niels de Vos
parent 8253568174
commit f7cfbac80c
1 changed files with 4 additions and 1 deletions

View File

@ -674,7 +674,10 @@ func (image *Image) Copy2(dest *Image) error {
return GetError(C.rbd_copy2(image.image, dest.image))
}
// int rbd_flatten(rbd_image_t image);
// Flatten removes snapshot references from the image.
//
// Implements:
// int rbd_flatten(rbd_image_t image);
func (image *Image) Flatten() error {
if err := image.validate(imageIsOpen); err != nil {
return err