Fixed extra return value.

This commit is contained in:
Bruce Hill 2019-01-18 20:39:05 -08:00
parent 32b258868c
commit ab116d4d8f
2 changed files with 8 additions and 3 deletions

View File

@ -420,8 +420,12 @@ do
local text_methods = {
formatted_with = format,
byte = byte,
position_of = find,
position_of_1_after = find,
position_of = (function(...)
return (find(...))
end),
position_of_1_after = (function(...)
return (find(...))
end),
as_a_lua_identifier = as_lua_id,
is_a_lua_identifier = is_lua_id,
as_a_lua_id = as_lua_id,

View File

@ -169,7 +169,8 @@ do
string2 = require 'string2'
{:lines, :line, :line_at, :as_lua_id, :is_lua_id} = string2
text_methods =
formatted_with:format, byte:byte, position_of:find, position_of_1_after:find,
formatted_with:format, byte:byte,
position_of:((...)->(find(...))), position_of_1_after:((...)->(find(...))),
as_a_lua_identifier: as_lua_id, is_a_lua_identifier: is_lua_id,
as_a_lua_id: as_lua_id, is_a_lua_id: is_lua_id,
bytes_1_to: (start, stop)=> List{byte(tostring(@), start, stop)}