Small Tricks to Fix My Golf Swing

I went golfing with a friend of my mine who was one of the best golfers I’ve ever personally golfed. He could regularly drive over 300 yards with little to no effort. As we were golfing he noticed that my golf swing kept pushing the ball to the right at the end of my swing. He showed me a little trick that I suspected wouldn’t work because it was counter intuitive to what I thought might fix my swing. He actually had me push my hands away from my body towards where the ball was going and all of a sudden the ball went straight with no hook! My golf swing was fixed!