Commit 9094d20f authored by Geoff Simmons's avatar Geoff Simmons

Doc polish -- simplify an example.

parent a112be9e
......@@ -242,8 +242,7 @@ Example::
# If the backend response has header Type with an an integer
# value, call the subroutine assigned to that integer.
if (beresp.http.Type ~ "^\d+$") {
subs.call(std.integer(
regsub(beresp.http.Type, "(\d+)", "\1")));
subs.call(std.integer(beresp.http.Type));
}
}
......@@ -264,8 +263,7 @@ Example::
if (beresp.http.Type ~ "^\d+$") {
std.log("Called in subroutine "
+ subs.string(std.integer(
regsub(beresp.http.Type, "(\d+)", "\1"))));
+ subs.string(std.integer(beresp.http.Type)));
}
}
......
......@@ -216,8 +216,7 @@ Example::
# If the backend response has header Type with an an integer
# value, call the subroutine assigned to that integer.
if (beresp.http.Type ~ "^\d+$") {
subs.call(std.integer(
regsub(beresp.http.Type, "(\d+)", "\1")));
subs.call(std.integer(beresp.http.Type));
}
}
......@@ -235,8 +234,7 @@ Example::
if (beresp.http.Type ~ "^\d+$") {
std.log("Called in subroutine "
+ subs.string(std.integer(
regsub(beresp.http.Type, "(\d+)", "\1"))));
+ subs.string(std.integer(beresp.http.Type)));
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment