What is an example of a pun in literature?

Figure of speech having more than one meaning.

Examples:

“Firefighting sparks my interest,” he punned.

She’s a skillful pilot whose career has really taken off.

Source: Merriam-Webster Dictionary.