[docs] update example and docs to reflect changes