error CS1061: 'Animator' does not contain a definition for 'SetTriggor'

So I am experiencing the error CS1061, here’s the full error message:

error CS1061: ‘Animator’ does not contain a definition for ‘SetTriggor’ and no accessible extension method ‘SetTriggor’ accepting a first argument of type ‘Animator’ could be found (are you missing a using directive or an assembly reference?)

I’m very new to Unity so I’m just following tutorials, currently, I am trying to animate an attack.
Heres my code:

public class PlayerAttack : MonoBehaviour
{
    Animator anim1;
    // Start is called before the first frame update
    void Start()
    {
        anim1 = GetComponent<Animator>();
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            anim1.SetTriggor("HeroKnight_Attack2");
        }
    }
}

Any help is appreciated! let me know if you need any more information

P.S. The error is on line 19

anim1.SetTriggor

should be

anim1.SetTrigger

spelling matters when coding, so pay very close attention if you are following tutorials to make sure you get it exactly right.
If you are using something like Visual Studio, then you should probably see that this would have been underlined in red to indicate that it was an error.

It probably would be on line 19 if you had included all of the code in your post (you are missing all the using statements from the top of the file).

The problem is in line 15 of the posted code

anim1.SetTriggor("HeroKnight_Attack2");

But as @BABIA_GameStudio already said, it should be a spelling problem. It has to be “SetTrigger”.

Thank you so much, I don’t know how I missed that!

Thank you as well!