Fixed a typo in histogram example code

`w0` should have been `w2`