From 1b89ccf25b7fc0698125b8751716053f9a5e2c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1dn=C3=ADk?= Date: Mon, 27 Sep 2021 20:36:44 +0300 Subject: [PATCH] Add comment --- crates/nu-parser/src/parse_keywords.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/nu-parser/src/parse_keywords.rs b/crates/nu-parser/src/parse_keywords.rs index e516da309b..088bf57ac5 100644 --- a/crates/nu-parser/src/parse_keywords.rs +++ b/crates/nu-parser/src/parse_keywords.rs @@ -309,6 +309,7 @@ pub fn parse_module( if err.is_none() { let decl_name = + // parts[1] is safe since it's checked in parse_def already working_set.get_span_contents(pipeline.commands[0].parts[1]); let decl_id = working_set