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

Doc polish -- simplify an example.

parent a112be9e
...@@ -242,8 +242,7 @@ Example:: ...@@ -242,8 +242,7 @@ Example::
# If the backend response has header Type with an an integer # If the backend response has header Type with an an integer
# value, call the subroutine assigned to that integer. # value, call the subroutine assigned to that integer.
if (beresp.http.Type ~ "^\d+$") { if (beresp.http.Type ~ "^\d+$") {
subs.call(std.integer( subs.call(std.integer(beresp.http.Type));
regsub(beresp.http.Type, "(\d+)", "\1")));
} }
} }
...@@ -264,8 +263,7 @@ Example:: ...@@ -264,8 +263,7 @@ Example::
if (beresp.http.Type ~ "^\d+$") { if (beresp.http.Type ~ "^\d+$") {
std.log("Called in subroutine " std.log("Called in subroutine "
+ subs.string(std.integer( + subs.string(std.integer(beresp.http.Type)));
regsub(beresp.http.Type, "(\d+)", "\1"))));
} }
} }
......
...@@ -216,8 +216,7 @@ Example:: ...@@ -216,8 +216,7 @@ Example::
# If the backend response has header Type with an an integer # If the backend response has header Type with an an integer
# value, call the subroutine assigned to that integer. # value, call the subroutine assigned to that integer.
if (beresp.http.Type ~ "^\d+$") { if (beresp.http.Type ~ "^\d+$") {
subs.call(std.integer( subs.call(std.integer(beresp.http.Type));
regsub(beresp.http.Type, "(\d+)", "\1")));
} }
} }
...@@ -235,8 +234,7 @@ Example:: ...@@ -235,8 +234,7 @@ Example::
if (beresp.http.Type ~ "^\d+$") { if (beresp.http.Type ~ "^\d+$") {
std.log("Called in subroutine " std.log("Called in subroutine "
+ subs.string(std.integer( + subs.string(std.integer(beresp.http.Type)));
regsub(beresp.http.Type, "(\d+)", "\1"))));
} }
} }
......
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