While reading hang on Dolly I noticed the author used the text compare and contrast I determined this in the sentence

"However, unlike her sister, Dolly had a rebellious spirit and was always seeking adventure."

In this sentence, the author is comparing Dolly to her sister and pointing out their contrasting characteristics. This use of comparing and contrasting helps to highlight the differences between the two characters.