Skip to content

Commit 83a27fb

Browse files
authored
Update Basalt.md
1 parent 763d30a commit 83a27fb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/objects/Basalt.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ end)
171171
<button onClick="clickMe" text="Click me" />
172172
```
173173

174-
## basalt.shedule
175-
Shedules a function which gets called in a coroutine. After the coroutine is finished it will get destroyed immediatly. It's something like threads, but with some limits.
174+
## basalt.schedule
175+
Schedules a function which gets called in a coroutine. After the coroutine is finished it will get destroyed immediatly. It's something like threads, but with some limits.
176176

177177
#### Parameters:
178178
1. `function` a function which should get executed
@@ -181,11 +181,11 @@ Shedules a function which gets called in a coroutine. After the coroutine is fin
181181
1. `function` it returns the function which you have to execute in order to start the coroutine
182182

183183
#### Usage:
184-
* Creates a shedule which switches the color between red and gray
184+
* Creates a schedule which switches the color between red and gray
185185
```lua
186186
local mainFrame = basalt.createFrame()
187187
local aButton = mainFrame:addButton():setText("Click me")
188-
aButton:onClick(basalt.shedule(function(self)
188+
aButton:onClick(basalt.schedule(function(self)
189189
self:setBackground(colors.red)
190190
os.sleep(0.1)
191191
self:setBackground(colors.gray)

0 commit comments

Comments
 (0)