Skip to content

Commit

Permalink
fix: docs typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wad4444 committed May 18, 2024
1 parent 634cb4b commit fd83eb4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/docs/tutorial/guide/invoking-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ return myEffect
import { BaseEffect, VisualEffectDecorator } from "@rbxts/refx";

@VisualEffectDecorator
export class myEffect extends BaseEffect<[number]> {
export class myEffect extends BaseEffect {
protected readonly DestroyOnEnd = false; // so our effect don't get destroyed instantly.
protected readonly MaxLifetime = 10;

Expand All @@ -60,7 +60,7 @@ Let's *create our effect* and c*all our method* from the *server proxy*:

```lua title="somewhere.lua" showLineNumbers
local myEffect = require(path.to.effect)
local effect = myEffect.new(10):Start(game.Players:GetPlayers())
local effect = myEffect.new():Start(game.Players:GetPlayers())
effect:DoSomething(10)
```

Expand All @@ -71,7 +71,7 @@ effect:DoSomething(10)
import { myEffect } from "./myEffect";
import { Players } from "@rbxts/services";

const effect = new myEffect(10).Start(Players.GetPlayers());
const effect = new myEffect().Start(Players.GetPlayers());
effect.DoSomething(10);
```

Expand Down

0 comments on commit fd83eb4

Please sign in to comment.