A remark on singular cohomology and sheaf cohomology