Move "Compatibility formula" to proper place.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Mon, 28 Nov 2011 00:01:06 +0200
changeset 1107 4473feb406cf
parent 1106 24c790c45f8b
child 1108 60726f28b999
Move "Compatibility formula" to proper place.
devel-versioning.rst
--- a/devel-versioning.rst	Sun Nov 27 23:54:40 2011 +0200
+++ b/devel-versioning.rst	Mon Nov 28 00:01:06 2011 +0200
@@ -135,6 +135,24 @@
  * rc (release candidate) are believed to meet all of the criteria for release
    and can be installed on test instances of production systems.
 
+Compatibility formula.
+----------------------
+
+Assume that app linked with new version of lib. Thus::
+
+  is_compatible_with_old(old, new) {
+    if (old.major != new.major) return 0;
+    if (old.minor > new.minor) return 0;
+    return 1;
+  }
+
+Assume that app linked with old version of lib. Thus::
+
+  is_compatible_with_new(old, new) {
+    if (old.major != new.major) return 0;
+    return 1;
+  }
+
 Versioning for products.
 ========================
 
@@ -345,24 +363,6 @@
 
 Protocol compatibility.
 
-Compatibility formula.
-======================
-
-Assume that app linked with new version of lib. Thus::
-
-  is_compatible_with_old(old, new) {
-    if (old.major != new.major) return 0;
-    if (old.minor > new.minor) return 0;
-    return 1;
-  }
-
-Assume that app linked with old version of lib. Thus::
-
-  is_compatible_with_new(old, new) {
-    if (old.major != new.major) return 0;
-    return 1;
-  }
-
 Reference.
 ==========