In general, it's not recommended to put gasoline in a diesel engine. Diesel engines are designed to run on diesel fuel, which has different properties than gasoline. Gasoline has a lower flash point and a higher volatility than diesel, meaning it can ignite more easily and burn faster. This can cause damage to the engine's fuel injection system and other components. Additionally, the higher volatility of gasoline can lead to increased engine wear.
While a small amount of gasoline may not cause immediate damage, it's still not advisable to put it in a diesel engine. It's always best to use the correct fuel for your vehicle to avoid any potential problems.