Error CS0029 LineRenderer Help

Hi, i have a problem. I started practicing in unity with a tutorial video of unity , Which is called Fun with laser and when to I create the script, appears the following error message: Assets/LaserScript.cs(10,17): error CS0029: Cannot implicitly convert type UnityEngine.LineRenderer[]' to UnityEngine.LineRenderer’

The script contains this:

using UnityEngine;
using System.Collections;

public class LaserScript : MonoBehaviour
{
LineRenderer line;

void Start () 
{
	line = gameObject.GetComponents<LineRenderer>();
	line.enabled = false;

	Screen.lockCursor = true;
}


void Update () 
{
	if (Input.GetButtonDown ("Fire1")) 
	{
		StopCoroutine("FireLaser");
		StartCoroutine("FireLaser");

	}

}
IEnumerator FireLaser()
{
	line.enabled = true;

	while (Input.GetButton("Fire1")) 
	{
		Ray ray = new Ray(transform.position, transform.forward);
		line.SetPosition(0, ray.origin);
		line.SetPosition(1, ray.GetPoint(100));
		yield return null;
	}

	line.enabled = false;
}

}
I hope you can help me.

line = gameObject.GetComponents();

returns an array of components.

Take out the “s” from the method name

line = gameObject.GetComponent<LineRenderer>();

I was wrong about something silly.
thank you very much. Problem solved.