I have read the following sentece on a lecture notes:
If $G\subset\mathrm{GL}(n,\mathbb{R})$ is a subgroup then its topological closure $\overline{G}$ is a topologically closed subgroup. $\overline{G}$ is obviously topologically closed, and I'm claiming that it's still a subgroup.
Now, I guess the topology is a metric topology (on $\mathrm{GL}(n,\mathbb{R})$ all metrics are equivalent), but I cannot see how it is true: as it is, it seems a false statement to me.
For example, if $G=\mathrm{GL}(n,\mathbb{R})$ then its closure is all the space of $n\times n$ matrixes, which is not a group.
Or if I consider the subgroup of diagonal matrix of the form $\lambda\mathrm{Id}_n$, $0\neq\lambda\in\mathbb{R}$, then the zero matrix is in the closure so it is not a group (with respect to the matrix multiplication).
I would need the assumption that $\overline{G}\subset\mathrm{GL}(n,\mathbb{R})$ to prove that it is a subgroup.
Am I missing something?