[master] 3458d0ded doc: Polish the none backend section

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Dec 9 13:29:09 UTC 2020


commit 3458d0ded07d5aeb558470905d35619504f19407
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Wed Dec 9 14:23:48 2020 +0100

    doc: Polish the none backend section
    
    Going back to lowercase, and aligning code blocks to 4 spaces to match
    the rest of the code snippets.

diff --git a/doc/sphinx/users-guide/vcl-backends.rst b/doc/sphinx/users-guide/vcl-backends.rst
index 311c6fd02..65105f2af 100644
--- a/doc/sphinx/users-guide/vcl-backends.rst
+++ b/doc/sphinx/users-guide/vcl-backends.rst
@@ -31,41 +31,41 @@ Varnish can have several backends defined you can even join
 several backends together into clusters of backends for load balancing
 purposes.
 
-The "None" backend
+The "none" backend
 ------------------
 
-Backends can also be declared as ``None`` with the following syntax:::
+Backends can also be declared as ``none`` with the following syntax:::
 
-    backend default None;
+    backend default none;
 
-``None`` backends are special:
+``none`` backends are special:
 
-* All backends declared ``None`` compare equal::
+* All backends declared ``none`` compare equal::
 
-    backend a None;
-    backend b None;
+    backend a none;
+    backend b none;
 
     sub vcl_recv {
-	set req.backend_hint = a;
-	if (req.backend_hint == b) {
-		return (synth(200, "this is true"));
-	}
-   }
+        set req.backend_hint = a;
+        if (req.backend_hint == b) {
+            return (synth(200, "this is true"));
+        }
+    }
 
-* The ``None`` backend evaluates to ``false`` when used in a boolean
+* The ``none`` backend evaluates to ``false`` when used in a boolean
   context::
 
-    backend nil None;
+    backend nil none;
 
     sub vcl_recv {
-	set req.backend_hint = nil;
-	if (! req.backend_hint) {
-		return (synth(200, "We get here"));
-	}
-   }
+        set req.backend_hint = nil;
+        if (! req.backend_hint) {
+            return (synth(200, "We get here"));
+        }
+    }
 
 * When directors find no healthy backend, they typically return the
-  ``None`` backend
+  ``none`` backend
 
 Multiple backends
 -----------------


More information about the varnish-commit mailing list