example in header and spaces in the end of strings removed

It's comfortable to see example in the header of source file. I don't want to open documentation in a browser to see simple example. 

Thanks