[PATCH] libvirt-domain.c: Fix typo in virDomainAttachDevice doc

Michal Privoznik posted 1 patch 2 years, 6 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/4c910519c53fa01ae356bad13ba38750d7755683.1631265140.git.mprivozn@redhat.com
src/libvirt-domain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] libvirt-domain.c: Fix typo in virDomainAttachDevice doc
Posted by Michal Privoznik 2 years, 6 months ago
In the documentation to virDomainAttachDevice() we refer to a
non-existent virDomainUpdateDeviceFlag() function. The correct
name is virDomainUpdateDeviceFlags().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
---

Pushed as trivial.

 src/libvirt-domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libvirt-domain.c b/src/libvirt-domain.c
index a8a386e839..57baef6889 100644
--- a/src/libvirt-domain.c
+++ b/src/libvirt-domain.c
@@ -8309,7 +8309,7 @@ virDomainGetMetadata(virDomainPtr domain,
  *
  * For compatibility, this method can also be used to change the media
  * in an existing CDROM/Floppy device, however, applications are
- * recommended to use the virDomainUpdateDeviceFlag method instead.
+ * recommended to use the virDomainUpdateDeviceFlags method instead.
  *
  * Be aware that hotplug changes might not persist across a domain going
  * into S4 state (also known as hibernation) unless you also modify the
-- 
2.32.0