Little confuse about the truth table about D-flip flop
On many flip-flops the Set and Reset inputs are active low. The person who wrote the text and the person who produced the waveform seem to have used opposite assumptions about the active levels for the Set and Reset inputs.