[master] d39082545 Fix showing STRANDS as STRING in the docs.

Geoff Simmons geoff at uplex.de
Fri Aug 17 05:14:11 UTC 2018


commit d3908254562013dc45a5b67c9815ded55fb8f98e
Author: Geoff Simmons <geoff at uplex.de>
Date:   Fri Aug 17 07:13:22 2018 +0200

    Fix showing STRANDS as STRING in the docs.

diff --git a/lib/libvcc/vmodtool.py b/lib/libvcc/vmodtool.py
index 669450fb7..66e99b236 100755
--- a/lib/libvcc/vmodtool.py
+++ b/lib/libvcc/vmodtool.py
@@ -239,14 +239,14 @@ class CType(object):
             assert w == ","
 
     def vcl(self):
-        if self.vt in ("STRING_LIST", "STRAND"):
+        if self.vt in ("STRING_LIST", "STRANDS"):
             return "STRING"
         if self.spec is None:
             return self.vt
         return self.vt + " {" + ", ".join(self.spec) + "}"
 
     def synopsis(self):
-        if self.vt in ("STRING_LIST", "STRAND"):
+        if self.vt in ("STRING_LIST", "STRANDS"):
             return "STRING"
         return self.vt
 


More information about the varnish-commit mailing list