Skip to content

Commit dc62507

Browse files
committed
Fixed documented keys selector name.
1 parent e696f6a commit dc62507

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ where
9393
- *index selectors* like `field[123]`, which select the Nth element of a repeated field.
9494
- *map value selectors* like `field[123]` or `field[abc]`, which select the given map key (both numbers and strings work).
9595
- *universal selectors* written `field[*]`, which select all elements of a repeated field or map.
96-
- *universal map key selectors* written `field:keys`, which select all keys of a map.
96+
- *universal map key selectors* written `field|keys`, which select all keys of a map.
9797

9898
## Caveats
9999

querying.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ void QueryImpl::CompileQueryPart(const pb::Descriptor** desc,
11481148
}
11491149

11501150
if (keys_selector && !fd->is_map()) {
1151-
throw BadQuery(":keys can only be used for maps");
1151+
throw BadQuery("|keys can only be used for maps");
11521152
}
11531153

11541154
if (fd->is_map()) {

0 commit comments

Comments
 (0)