There's an argument though that it doesn't actually end EU membership, hypothetically (and very unlikely) if the Government and EU agreed we would remain in with our laws incompatible with EU laws and at risk of legal action. However we'd still be in.
I'm not being deliberately argumentative - just pointing out where legal eagles could earn a fortune debating semantics.
Unlike the wonderful membership of Cable Forum where we don't earn a penny for it.