Skip to content

Commit

Permalink
Fix typo to match docs
Browse files Browse the repository at this point in the history
Fixes #4
  • Loading branch information
p3lim committed Nov 28, 2024
1 parent b705dd1 commit 200ff07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ Registers a canvas sub-category. This does not handle savedvariables.
Canvas frame has a custom method `SetDefaultsHandler` which takes a callback as arg1.
This callback is triggered when the "Defaults" button is clicked.
--]]
function addon:RegisterSubCanvas(name, callback)
function addon:RegisterSubSettingsCanvas(name, callback)
addon:ArgCheck(name, 1, 'string')
addon:ArgCheck(callback, 2, 'function')
assert(not not self.settingsChildren, "can't register sub-settings without root settings")
Expand Down

1 comment on commit 200ff07

@Kkthnx
Copy link

@Kkthnx Kkthnx commented on 200ff07 Nov 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @p3lim Happy Thanksgiving to you!

Please sign in to comment.