Skip to content

Commit

Permalink
Updated documentation to clarify breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
wauterboi committed Apr 12, 2023
1 parent aa7288a commit fa2806e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ style modules in Garry's Mod.
* Detoured `require` to reference package library keyvalues and allow for return
values
* Added `package.environment`, which is used as the global table for custom
modules. By default, it mirrors a basic Lua 5.1 environment and contains
only two extra keyvalues: `default`, which is the default global table, and
`AddCSLuaFile`.
modules. By default, it mirrors a basic Lua 5.1 environment.
* `require 'gmod'` can be used to get a reference to the default global
environment, i.e. `require('gmod').Msg('hello, world!')`
* Basic support for Lua 5.1 modules (must be pure Lua and take note of
`package.environment` limitations)

Expand Down Expand Up @@ -59,7 +59,7 @@ print(y.translation)
print 'Hello'
return {
standard = 'Lorem ipsum dolor sit amet',
translated = 'The customer is very happy'
translation = 'The customer is very happy'
}
```

Expand Down

0 comments on commit fa2806e

Please sign in to comment.