[master] 243e690 Better example
Federico G. Schwindt
fgsch at lodoss.net
Wed Mar 19 01:53:03 CET 2014
commit 243e6909fd4c742158b46eb1e2d9b59b5dd25ccd
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Wed Mar 19 00:07:36 2014 +0000
Better example
Don't use {} in one-liners
diff --git a/doc/sphinx/whats-new/upgrading.rst b/doc/sphinx/whats-new/upgrading.rst
index a0da998..5f52318 100644
--- a/doc/sphinx/whats-new/upgrading.rst
+++ b/doc/sphinx/whats-new/upgrading.rst
@@ -53,7 +53,7 @@ The synthetic keyword is now a function::
if (resp.status == 799) {
set resp.status = 200;
set resp.http.Content-Type = "text/plain; charset=utf-8";
- synthetic({"You are "} + client.ip);
+ synthetic("You are " + client.ip);
return (deliver);
}
More information about the varnish-commit
mailing list