Skip to content

Commit ec00e20

Browse files
Zhu Zhanyangitbook-bot
authored andcommitted
GitBook: [v0.6-branch] 32 pages modified
1 parent 6593a0a commit ec00e20

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎docs/user-guide/feature-retrieval.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ response = client.get_online_features(
155155
)
156156

157157
for feature in features:
158-
# feature values can be obtained from the response's field values
159-
response.field_values.fields[feature]
158+
# feature value can be obtained from the response's field values
159+
value = response.field_values.fields[feature]
160160
```
161161

162162
{% hint style="info" %}
@@ -171,7 +171,7 @@ Online Serving also returns Online Field Statuses when retrieving features. Thes
171171

172172
```python
173173
for feature in features:
174-
# field statuses can be obtained from the response's field values
174+
# field status can be obtained from the response's field values
175175
status = response.field_values.statuses[feature]
176176

177177
if status == GetOnlineFeaturesResponse.FieldStatus.NOT_FOUND:

0 commit comments

Comments
 (0)