A note on nonlinear electrodynamics