mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 12:58:11 +02:00
Rename origin to anchor
This commit is contained in:
@ -99,10 +99,10 @@ impl HelpShell {
|
||||
|
||||
impl Shell for HelpShell {
|
||||
fn name(&self, source_map: &SourceMap) -> String {
|
||||
let origin_name = self.value.origin_name(source_map);
|
||||
let anchor_name = self.value.anchor_name(source_map);
|
||||
format!(
|
||||
"{}",
|
||||
match origin_name {
|
||||
match anchor_name {
|
||||
Some(x) => format!("{{{}}}", x),
|
||||
None => format!("<{}>", self.value.item.type_name(),),
|
||||
}
|
||||
|
@ -73,10 +73,10 @@ impl ValueShell {
|
||||
|
||||
impl Shell for ValueShell {
|
||||
fn name(&self, source_map: &SourceMap) -> String {
|
||||
let origin_name = self.value.origin_name(source_map);
|
||||
let anchor_name = self.value.anchor_name(source_map);
|
||||
format!(
|
||||
"{}",
|
||||
match origin_name {
|
||||
match anchor_name {
|
||||
Some(x) => format!("{{{}}}", x),
|
||||
None => format!("<{}>", self.value.item.type_name(),),
|
||||
}
|
||||
|
Reference in New Issue
Block a user