summaryrefslogtreecommitdiff
path: root/test/example
diff options
context:
space:
mode:
Diffstat (limited to 'test/example')
-rw-r--r--test/example/guide.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/example/guide.txt b/test/example/guide.txt
index 437e37b0..da8d5c32 100644
--- a/test/example/guide.txt
+++ b/test/example/guide.txt
@@ -2702,7 +2702,7 @@ function m.viewInferType(infers)
or src.type == 'doc.class.name'
or src.type == 'doc.type.name'
or src.type == 'doc.type.array'
- or src.type == 'doc.type.generic' then
+ or src.type == 'doc.type.table' then
if infer.type ~= 'any' then
hasDoc = true
break
@@ -2717,7 +2717,7 @@ function m.viewInferType(infers)
or src.type == 'doc.class.name'
or src.type == 'doc.type.name'
or src.type == 'doc.type.array'
- or src.type == 'doc.type.generic'
+ or src.type == 'doc.type.table'
or src.type == 'doc.type.enum'
or src.type == 'doc.resume' then
local tp = infer.type or 'any'
@@ -2946,7 +2946,7 @@ local function getDocTypeUnitName(status, unit)
typeName = 'function'
elseif unit.type == 'doc.type.array' then
typeName = getDocTypeUnitName(status, unit.node) .. '[]'
- elseif unit.type == 'doc.type.generic' then
+ elseif unit.type == 'doc.type.table' then
typeName = ('%s<%s, %s>'):format(
getDocTypeUnitName(status, unit.node),
m.viewInferType(m.getDocTypeNames(status, unit.key)),