# Split on newlines - use lines

* lines
* Lines

* The `lines` method returns a [Lines](https://doc.rust-lang.org/std/str/struct.Lines.html) struct, an iterator over the lines.

{% embed include file="src/examples/strings/split-lines/src/main.rs" %}
{% embed include file="src/examples/strings/split-lines/out.out" %}


