Error CS0619 Camera Obsolete

I genuinely don’t know how to fix this error, and I apologize for being an idiot. I just need some help

public class Interactor : MonoBehaviour
{

public LayerMask interactableLayermask;
// Start is called before the first frame update
void Start()
{
    
}

// Update is called once per frame
void Update()
{
    RaycastHit hit;

    if (Physics.Raycast(camera.main.transform.position, Camera.main.transform.forward, out hit, 2, interactableLayermask))
    {
        Debug.Log(hit.collider.name);
    }
}

}

Try Camera.main.transform.position (Capital ‘C’) as the first argument of the Raycast.