# Ownership and strings

* take ownership

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

* borrow

{% embed include file="src/examples/strings/borrow/src/main.rs" %}

* give ownership

{% embed include file="src/examples/strings/give-ownership/src/main.rs" %}


