Fix deprecated syntax in README examples