A Swindon man who was arrested for an alleged stabbing has now admitted to wounding with intent, after previously pleading not guilty.