Comparison

util/error.lua @ 11207:4e060ae8520b

util.error: Remove a stray word from a comment Earlier in the process the namespace could be given in the registry table, the comment would have read > registry can be given as second argument if namespace is either not > used or is given in the registry table The word seems to have been left when this method was scrapped for being complicated and redundant.
author Kim Alvefur <zash@zash.se>
date Sat, 14 Nov 2020 22:22:46 +0100
parent 11161:f51ed2652602
child 11221:b0a563716334
comparison
equal deleted inserted replaced
11206:f051394762ff 11207:4e060ae8520b
89 return mapped; 89 return mapped;
90 end 90 end
91 91
92 local function init(source, namespace, registry) 92 local function init(source, namespace, registry)
93 if type(namespace) == "table" then 93 if type(namespace) == "table" then
94 -- registry can be given as second argument if namespace is either not used 94 -- registry can be given as second argument if namespace is not used
95 registry, namespace = namespace, nil; 95 registry, namespace = namespace, nil;
96 end 96 end
97 local _, protoerr = next(registry, nil); 97 local _, protoerr = next(registry, nil);
98 if protoerr and type(next(protoerr)) == "number" then 98 if protoerr and type(next(protoerr)) == "number" then
99 registry = expand_registry(namespace, registry); 99 registry = expand_registry(namespace, registry);