[master] 99251be57 doc: Fix formatting in some examples
guillaume quintard
gquintard at users.noreply.github.com
Tue Jul 13 07:16:09 UTC 2021
commit 99251be57bbdb0eff41125a171c39db3c10c05f7
Author: Jordan Christiansen <jordan.christiansen at target.com>
Date: Mon Jul 12 16:49:21 2021 -0500
doc: Fix formatting in some examples
In RST, there needs to be an empty line after ::, otherwise the whole
block is interpreted as a normal paragraph where newlines are not
preserved.
diff --git a/vmod/vmod_std.vcc b/vmod/vmod_std.vcc
index a220b7872..733d41306 100644
--- a/vmod/vmod_std.vcc
+++ b/vmod/vmod_std.vcc
@@ -274,6 +274,7 @@ Only one of the *s*, *real* or *integer* arguments may be given or a VCL
failure will be triggered.
Examples::
+
set beresp.ttl = std.duration("1w", 3600s);
set beresp.ttl = std.duration(real=1.5);
set beresp.ttl = std.duration(integer=10);
@@ -300,6 +301,7 @@ Only one of the *s*, *real* or *integer* arguments may be given or a VCL
failure will be triggered.
Example::
+
std.cache_req_body(std.bytes(something.somewhere, 10K));
std.cache_req_body(std.bytes(integer=10*1024));
std.cache_req_body(std.bytes(real=10.0*1024));
More information about the varnish-commit
mailing list