diff --git a/README.md b/README.md index 7ae57ba..228d999 100644 --- a/README.md +++ b/README.md @@ -125,12 +125,10 @@ enable caching of values returned by a widget type **Force update of widgets:** ```Lua - vicious.force(widget) - vicious.force({ widget1, widget2 }) + vicious.force({ widget, }) ``` -widget argument is a single widget or a table with one or more widgets that -will be updated +widget argument is a table with one or more widgets that will be updated Widget types diff --git a/init.lua b/init.lua index 374c419..62b6980 100644 --- a/init.lua +++ b/init.lua @@ -234,8 +234,6 @@ function vicious.force(wtable) for _, w in pairs(wtable) do update(w, nil, true) end - else - update(wtable, nil, true) end end -- }}}