Twain uses this skill while Huck is debating what to do about Jim. Huck isn't sure whether he should turn Jim in. He thinks that the right thing to do is to turn him in, but he likes Jim. It is ironic that he thinks that the right thing to do is to condemn Jim to a life of slavery. Twain is using this irony to attack the racism of the south, and the things that they taught their children.