How to Spawn Copies of Enemies or Projectiles at Mouse Cursor Point I have found code but one error is there / Unity 2019.4.14

There were actually 5 errors I fixed 4 errors but there is a error still left this is the code

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Shooter : MonoBehaviour
{
    public GameObject enemy;
    
    private void Spawn(Vector3 position)
    {
        Instantiate(enemy).transform.position = position;
    }

    public void Update()
    {
        // Left mouse click
        if (Input.GetMouseButtonDown(0))
        {
            Vector3 worldPoint = Camera.main.ScreenToWorldPoint(Input.mouse.Position, Camera.MonoOrStereoscopicEye.Mono);


            // Make Z position the Z position of the prefab object
            Vector3 adjustZ = new Vector3(worldPoint.x, worldPoint.y, enemy.transform.position.z)

            Spawn(adustZ);
        }
    }
}

And The 1 error left is
Assets/Shooter.cs(23,98): error CS1002: ; expected

Add a semi-colon(:wink: at the end of line 23.

Like this-

Vector3 adjustZ = new Vector3(worldPoint.x, worldPoint.y, enemy.transform.position.z);

BTW the error was pretty self explainatory.

Shooter.cs = Script,

23 in the brackets means the line number,

98 means the letter index,

and it tells that it expected a semi-colon(:wink: there.