From 0fa466dd6b2f5875c8ad37ad15ef8d73eff30d40 Mon Sep 17 00:00:00 2001 From: Greg Burd Date: Thu, 23 Jan 2020 14:26:46 -0500 Subject: [PATCH] Minor fixes. --- core-traits/values.rs | 8 ++++---- db/src/cache.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core-traits/values.rs b/core-traits/values.rs index 214bd93f..0cde838c 100644 --- a/core-traits/values.rs +++ b/core-traits/values.rs @@ -19,11 +19,11 @@ use edn::types::Value; /// Declare a lazy static `ident` of type `Value::Keyword` with the given `namespace` and /// `name`. /// -/// It may look surprising that we declare a new `lazy_static!` block rather than including +/// It may look surprising to declare a new `lazy_static!` block rather than including /// invocations inside an existing `lazy_static!` block. The latter cannot be done, since macros -/// are expanded outside-in. Looking at the `lazy_static!` source suggests that there is no harm in -/// repeating that macro, since internally a multi-`static` block is expanded into many -/// single-`static` blocks. +/// will be expanded outside-in. Looking at the `lazy_static!` source suggests that there is no +/// harm in repeating that macro, since internally a multi-`static` block will be expanded into +/// many single-`static` blocks. /// /// TODO: take just ":db.part/db" and define DB_PART_DB using "db.part" and "db". macro_rules! lazy_static_namespaced_keyword_value ( diff --git a/db/src/cache.rs b/db/src/cache.rs index d05d4377..2e9e0f24 100644 --- a/db/src/cache.rs +++ b/db/src/cache.rs @@ -662,7 +662,7 @@ pub struct AttributeCaches { non_unique_reverse: BTreeMap, } -// TODO: if an entity or attribute is ever renumbered, the cache will need to be rebuilt. +// TODO: if an entity or attribute is ever re-numbered, the cache will need to be rebuilt. impl AttributeCaches { // // These function names are brief and local.