diff --git a/crates/nu-protocol/src/value/custom_value.rs b/crates/nu-protocol/src/value/custom_value.rs index 2f02af1aac..c28c1e637f 100644 --- a/crates/nu-protocol/src/value/custom_value.rs +++ b/crates/nu-protocol/src/value/custom_value.rs @@ -7,7 +7,7 @@ use crate::{ShellError, Span, Type, Value, ast::Operator}; pub trait CustomValue: fmt::Debug + Send + Sync { /// Custom `Clone` implementation /// - /// This can reemit a `Value::CustomValue(Self, span)` or materialize another representation + /// This can reemit a `Value::Custom(Self, span)` or materialize another representation /// if necessary. fn clone_value(&self, span: Span) -> Value; diff --git a/crates/nu-protocol/src/value/mod.rs b/crates/nu-protocol/src/value/mod.rs index 567c36263e..b92a527cea 100644 --- a/crates/nu-protocol/src/value/mod.rs +++ b/crates/nu-protocol/src/value/mod.rs @@ -1981,7 +1981,7 @@ impl Value { /// as it will point into unknown source when used in errors. /// /// Returns a `Vec` containing one of each value case (`Value::Int`, `Value::String`, etc.) - /// except for `Value::CustomValue`. + /// except for `Value::Custom`. pub fn test_values() -> Vec { vec![ Value::test_bool(false),