Skip to content

Commit 8be78e1

Browse files
committed
fix typo
1 parent a837bf2 commit 8be78e1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/emmylua_code_analysis/resources/std/builtin.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@
110110

111111
---@alias Nullable<T> T + ?
112112

113-
--- built-in type
114-
---@alias Select<T, StartOrLen> unkonwn
115-
116-
--- built-in type
113+
--- built-in type for Select function
114+
---@alias Select<T, StartOrLen> unknown
115+
---
116+
--- built-in type for Unpack function
117117
---@alias Unpack<T, Start, End> unknown

crates/emmylua_code_analysis/src/compilation/analyzer/doc/infer_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub fn infer_type(analyzer: &mut DocAnalyzer, node: LuaDocType) -> LuaType {
111111
fn infer_buildin_or_ref_type(analyzer: &mut DocAnalyzer, name: &str, range: TextRange) -> LuaType {
112112
let position = range.start();
113113
match name {
114-
"Unknown" => LuaType::Unknown,
114+
"unknown" => LuaType::Unknown,
115115
"nil" | "void" => LuaType::Nil,
116116
"any" => LuaType::Any,
117117
"table" => LuaType::Table,

0 commit comments

Comments
 (0)