From e82df7c1c9766a4c6b43a80db85d8b91c34baa3e Mon Sep 17 00:00:00 2001 From: Douglas <32344964+NotTheDr01ds@users.noreply.github.com> Date: Mon, 7 Apr 2025 00:38:17 -0400 Subject: [PATCH] Reminder comment to update doc when adding `$nu` constants (#15481) # Description As requested in review on https://github.com/nushell/nushell.github.io/pull/1860 - This adds a reminder comment requesting that contributors update that doc page when adding new constants. # User-Facing Changes None # Tests + Formatting Comment-only # After Submitting This PR should only be merged after https://github.com/nushell/nushell.github.io/pull/1860 is merged into the doc. --- crates/nu-protocol/src/eval_const.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/nu-protocol/src/eval_const.rs b/crates/nu-protocol/src/eval_const.rs index 15ad479e19..b387de4120 100644 --- a/crates/nu-protocol/src/eval_const.rs +++ b/crates/nu-protocol/src/eval_const.rs @@ -17,6 +17,8 @@ use std::{ }; /// Create a Value for `$nu`. +// Note: When adding new constants to $nu, please update the doc at https://nushell.sh/book/special_variables.html +// or at least add a TODO/reminder issue in nushell.github.io so we don't lose track of it. pub(crate) fn create_nu_constant(engine_state: &EngineState, span: Span) -> Value { fn canonicalize_path(engine_state: &EngineState, path: &Path) -> PathBuf { #[allow(deprecated)]