libyang UPDATE handle different contexts in functions
Refs #1738
diff --git a/src/tree_data.h b/src/tree_data.h
index fa52499..4d04581 100644
--- a/src/tree_data.h
+++ b/src/tree_data.h
@@ -1845,6 +1845,8 @@
/**
* @brief Compare 2 data nodes if they are equivalent.
*
+ * Works correctly even if @p node1 and @p node2 have different contexts.
+ *
* @param[in] node1 The first node to compare.
* @param[in] node2 The second node to compare.
* @param[in] options Various @ref datacompareoptions.
@@ -1856,6 +1858,8 @@
/**
* @brief Compare 2 lists of siblings if they are equivalent.
*
+ * Works correctly even if @p node1 and @p node2 have different contexts.
+ *
* @param[in] node1 The first sibling list to compare.
* @param[in] node2 The second sibling list to compare.
* @param[in] options Various @ref datacompareoptions.
@@ -1867,6 +1871,8 @@
/**
* @brief Compare 2 metadata.
*
+ * If @p meta1 and @p meta2 have different contexts, they are never equivalent.
+ *
* @param[in] meta1 First metadata.
* @param[in] meta2 Second metadata.
* @return LY_SUCCESS if the metadata are equivalent.