fixed api typo in README snippet