# HG changeset patch # User Matthew Wild # Date 1603376868 -3600 # Node ID 5c77923ec1d980ea2e39c6ab4ac086fb3cfc8886 # Parent 07a0f9f2e69d95fd89be1e6f22c50276d67336c6 docs/example.lua: Don't depend on 'verse' being a global diff -r 07a0f9f2e69d -r 5c77923ec1d9 doc/example.lua --- a/doc/example.lua Thu Oct 22 15:27:22 2020 +0100 +++ b/doc/example.lua Thu Oct 22 15:27:48 2020 +0100 @@ -5,7 +5,7 @@ -- handy if you're hacking on Verse itself --os.execute("squish --minify-level=none verse"); -require "verse".init("client"); +local verse = require "verse".init("client"); c = verse.new(); c:add_plugin("version");