diff options
| author | ζΉθι <szdytom@163.com> | 2023-04-30 02:29:48 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-29 20:29:48 +0200 |
| commit | b5d72caaf94a5079cf67ce5c4764992d5e9ed01a (patch) | |
| tree | 051e3ef0013f7cb01ecd089ad10ceb3fd6791aff /library/src | |
| parent | cfad59967c417e385e77421d1dbd3ed24d9dc90f (diff) | |
Update query's documentation (#1026)
Diffstat (limited to 'library/src')
| -rw-r--r-- | library/src/meta/query.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/library/src/meta/query.rs b/library/src/meta/query.rs index f256af23..9488a964 100644 --- a/library/src/meta/query.rs +++ b/library/src/meta/query.rs @@ -89,6 +89,13 @@ use crate::prelude::*; /// }) /// ``` /// +/// ## Migration Hints +/// The `before` and `after` arguments have been removed in version 0.3.0. You +/// can now use flexible selector combinator methods instead. For example, +/// `query(heading, before: loc)` becomes `query(heading.before(loc), loc)`. +/// Please refer to the [selector documentation]($type/selector) for more +/// details. +/// /// Display: Query /// Category: meta /// Returns: content @@ -112,8 +119,6 @@ pub fn query( /// the query's result is reduced. If you could call it directly at the top /// level of a module, the evaluation of the whole module and its exports /// could depend on the query's result. - /// - /// Only one of this, `before`, and `after` shall be given. location: Location, ) -> Value { let _ = location; |
