Skip to content

Commit 696ff58

Browse files
authored
Merge pull request #169 from lengyijun/patch-4
typo fix
2 parents c598bf9 + 9f3812e commit 696ff58

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

polonius-engine/src/facts.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ pub struct AllFacts<T: FactTypes> {
4242
/// `var_dropped_at(var, point)` when the variable `var` is used in a drop at `point`
4343
pub var_dropped_at: Vec<(T::Variable, T::Point)>,
4444

45-
// `use_of_var_derefs_origin(variable, origin)`: References with the given
46-
// `origin` may be dereferenced when the `variable` is used.
47-
//
48-
// In rustc, we generate this whenever the type of the variable includes the
49-
// given origin.
45+
/// `use_of_var_derefs_origin(variable, origin)`: References with the given
46+
/// `origin` may be dereferenced when the `variable` is used.
47+
///
48+
/// In rustc, we generate this whenever the type of the variable includes the
49+
/// given origin.
5050
pub use_of_var_derefs_origin: Vec<(T::Variable, T::Origin)>,
5151

5252
/// `drop_of_var_derefs_origin(var, origin)` when the type of `var` includes
@@ -60,19 +60,19 @@ pub struct AllFacts<T: FactTypes> {
6060
/// `path_is_var(path, var)` the root path `path` starting in variable `var`.
6161
pub path_is_var: Vec<(T::Path, T::Variable)>,
6262

63-
/// `path_assigned_at(path, point)` when the `path` was initialized at point
63+
/// `path_assigned_at_base(path, point)` when the `path` was initialized at point
6464
/// `point`. This fact is only emitted for a prefix `path`, and not for the
6565
/// implicit initialization of all of `path`'s children. E.g. a statement like
66-
/// `x.y = 3` at `point` would give the fact `initialized_at(x.y, point)` (but
67-
/// neither `initialized_at(x.y.z, point)` nor `initialized_at(x, point)`).
66+
/// `x.y = 3` at `point` would give the fact `path_assigned_at_base(x.y, point)` (but
67+
/// neither `path_assigned_at_base(x.y.z, point)` nor `path_assigned_at_base(x, point)`).
6868
pub path_assigned_at_base: Vec<(T::Path, T::Point)>,
6969

7070
/// `path_moved_at_base(path, point)` when the `path` was moved at `point`. The
71-
/// same logic is applied as for `assigned_at` above.
71+
/// same logic is applied as for `path_assigned_at_base` above.
7272
pub path_moved_at_base: Vec<(T::Path, T::Point)>,
7373

7474
/// `path_accessed_at_base(path, point)` when the `path` was accessed at point
75-
/// `point`. The same logic as for `initialized_at` and `moved_out_at` applies.
75+
/// `point`. The same logic as for `path_assigned_at_base` and `path_moved_at_base` applies.
7676
pub path_accessed_at_base: Vec<(T::Path, T::Point)>,
7777

7878
/// These reflect the `'a: 'b` relations that are either declared by the user on function

0 commit comments

Comments
 (0)