[master] 3c90fdc Typos and formatting

Federico G. Schwindt fgsch at lodoss.net
Tue Mar 27 18:40:12 UTC 2018


commit 3c90fdcc3a88989d1639b9ef482682a44fafee48
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Tue Mar 27 08:53:16 2018 -0300

    Typos and formatting

diff --git a/lib/libvarnish/vsa.c b/lib/libvarnish/vsa.c
index 1c05520..4e0762f 100644
--- a/lib/libvarnish/vsa.c
+++ b/lib/libvarnish/vsa.c
@@ -91,7 +91,7 @@
  * Along the way the BSD people figured out that it was a bother
  * to carry the length argument separately, and added that to the
  * format of sockaddr, but other groups found this unclean, as
- * the length was already an explicit paramter.
+ * the length was already an explicit parameter.
  *
  * The net result of this is that your "portable" code, must take
  * care to handle the "sa_len" member on kernels which have it,
diff --git a/lib/libvmod_blob/vmod.vcc b/lib/libvmod_blob/vmod.vcc
index 341f3fe..0a7e652 100644
--- a/lib/libvmod_blob/vmod.vcc
+++ b/lib/libvmod_blob/vmod.vcc
@@ -138,7 +138,7 @@ character ``=``.
 
 The ``BASE64URLNOPAD`` encoding uses the same alphabet as
 ``BASE6URL``, but leaves out the padding. Thus the length of an
-encoding with this scheme is not necessarily a mutltiple of four.
+encoding with this scheme is not necessarily a multiple of four.
 
 The ``case`` ENUM MUST be set to ``DEFAULT`` for for all of the
 ``BASE64*`` encodings.
@@ -202,7 +202,7 @@ $Function STRING encode(ENUM {IDENTITY, BASE64, BASE64URL, BASE64URLNOPAD,
 			      HEX, URL} encoding="IDENTITY",
 			ENUM {LOWER, UPPER, DEFAULT} case="DEFAULT", BLOB blob)
 
-Returns a string representation of the BLOB ``blob`` as specifed by
+Returns a string representation of the BLOB ``blob`` as specified by
 ``encoding``. ``case`` determines the case of hex digits for the
 ``HEX`` and ``URL`` encodings, and is ignored for the other encodings.
 
diff --git a/lib/libvmod_directors/vmod.vcc b/lib/libvmod_directors/vmod.vcc
index 586c9db..a1a625f 100644
--- a/lib/libvmod_directors/vmod.vcc
+++ b/lib/libvmod_directors/vmod.vcc
@@ -78,7 +78,6 @@ Description
 	Add a backend to the round-robin director.
 Example
 	vdir.add_backend(backend1);
-	vdir.add_backend(backend2);
 
 $Method VOID .remove_backend(BACKEND)
 
@@ -86,7 +85,6 @@ Description
 	Remove a backend from the round-robin director.
 Example
 	vdir.remove_backend(backend1);
-	vdir.remove_backend(backend2);
 
 $Method BACKEND .backend()
 
@@ -121,7 +119,6 @@ Description
 
 Example
 	vdir.add_backend(backend1);
-	vdir.add_backend(backend2);
 
 $Method VOID .remove_backend(BACKEND)
 
@@ -129,7 +126,6 @@ Description
 	Remove a backend from the director.
 Example
 	vdir.remove_backend(backend1);
-	vdir.remove_backend(backend2);
 
 $Method BACKEND .backend()
 
@@ -162,9 +158,9 @@ Description
 	director.
 
 Example
-	# 2/3 to backend1, 1/3 to backend2.
-	vdir.add_backend(backend1, 10.0);
-	vdir.add_backend(backend2, 5.0);
+	| # 2/3 to backend1, 1/3 to backend2.
+	| vdir.add_backend(backend1, 10.0);
+	| vdir.add_backend(backend2, 5.0);
 
 $Method VOID .remove_backend(BACKEND)
 
@@ -172,7 +168,6 @@ Description
 	Remove a backend from the director.
 Example
 	vdir.remove_backend(backend1);
-	vdir.remove_backend(backend2);
 
 $Method BACKEND .backend()
 
@@ -205,7 +200,6 @@ Description
 
 Example
 	vdir.add_backend(backend1, 1.0);
-	vdir.add_backend(backend2, 1.0);
 
 $Method VOID .remove_backend(BACKEND)
 
@@ -213,7 +207,6 @@ Description
 	Remove a backend from the director.
 Example
 	vdir.remove_backend(backend1);
-	vdir.remove_backend(backend2);
 
 $Method BACKEND .backend(STRING_LIST)
 
@@ -222,8 +215,8 @@ Description
 
 	Use the string or list of strings provided to pick the backend.
 Example
-	# pick a backend based on the cookie header from the client
-	set req.backend_hint = vdir.backend(req.http.cookie);
+	| # pick a backend based on the cookie header from the client
+	| set req.backend_hint = vdir.backend(req.http.cookie);
 
 $Object shard()
 
@@ -573,7 +566,7 @@ is _not_ the order given when backends are added.
       associated parameter set affect the sharding decision once the
       director resolves to an actual backend.
 
-    * If other paramter arguments are also given, they have preference
+    * If other parameter arguments are also given, they have preference
       and are kept even if the parameter set given by the `param`
       argument is subsequently changed within the same backend request.
 
@@ -647,17 +640,17 @@ use. See `func_shard.backend`_.
 
 $Method INT .get_alt()
 
-Get the `alt` paramter which a shard director using this parameter
+Get the `alt` parameter which a shard director using this parameter
 object would use. See `func_shard.backend`_.
 
 $Method REAL .get_warmup()
 
-Get the `warmup` paramter which a shard director using this parameter
+Get the `warmup` parameter which a shard director using this parameter
 object would use. See `func_shard.backend`_.
 
 $Method BOOL .get_rampup()
 
-Get the `rampup` paramter which a shard director using this parameter
+Get the `rampup` parameter which a shard director using this parameter
 object would use. See `func_shard.backend`_.
 
 $Method STRING .get_healthy()
diff --git a/lib/libvmod_directors/vmod_shard.c b/lib/libvmod_directors/vmod_shard.c
index 9b42e5a..168f15a 100644
--- a/lib/libvmod_directors/vmod_shard.c
+++ b/lib/libvmod_directors/vmod_shard.c
@@ -86,7 +86,7 @@ struct vmod_directors_shard_param {
 	const struct vmod_directors_shard_param *defaults;
 	enum vmod_directors_shard_param_scope	scope;
 
-	/* paramters */
+	/* parameters */
 	enum by_e				by;
 	enum healthy_e				healthy;
 	uint32_t				mask;


More information about the varnish-commit mailing list