From 0e4303dd631080b0499c87331a34ce0e3a21cf7a Mon Sep 17 00:00:00 2001 From: fearlessfe <505380967@qq.com> Date: Sun, 2 Jun 2024 22:32:21 +0800 Subject: [PATCH] fix: doc error in starlark.plan --- docs/docs/api-reference/starlark-reference/plan.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/api-reference/starlark-reference/plan.md b/docs/docs/api-reference/starlark-reference/plan.md index 85ef55eb1d..72f079d07b 100644 --- a/docs/docs/api-reference/starlark-reference/plan.md +++ b/docs/docs/api-reference/starlark-reference/plan.md @@ -438,9 +438,9 @@ http_response = plan.request( # OPTIONAL (Default: Running 'REQUEST_TYPE' request on service 'SERVICE_NAME') description = "making a request" ) -plan.print(get_response["body"]) # Prints the body of the request -plan.print(get_response["code"]) # Prints the result code of the request (e.g. 200, 500) -plan.print(get_response["extract.extracted-field"]) # Prints the result of running ".name.id" query, that is saved with key "extracted-field" +plan.print(http_response["body"]) # Prints the body of the request +plan.print(http_response["code"]) # Prints the result code of the request (e.g. 200, 500) +plan.print(http_response["extract.extracted-field"]) # Prints the result of running ".name.id" query, that is saved with key "extracted-field" ``` The instruction returns a response, which is a `dict` with following key-value pair; the values are a [future reference][future-references-reference]