Corrected an error in api documentation. The sync function is a member of the replicate object.