Relik77 / factorio_computer_core

MIT License
7 stars 4 forks source link

Incorrect API documentation for disk.readFile(filepath) and disk.removeFile(filepath) #12

Closed Eeems closed 5 years ago

Eeems commented 5 years ago

The help documentation for disk.readFile(filepath) and disk.removeFile(filepath) are about writing content to the file instead of what the methods actually do.

https://github.com/Relik77/factorio_computer_core/blob/9f00a27c452cf129548745abb238967b3f0a0fc7/logic/apis/disk.lua#L10

https://github.com/Relik77/factorio_computer_core/blob/9f00a27c452cf129548745abb238967b3f0a0fc7/logic/apis/disk.lua#L32

Eeems commented 5 years ago

I've opened a pull request to resolve this.