Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

string literal

Text written in quotes in your code.

A string literal "..." has type &'static str: a reference to text stored in the program itself.

Examples

  • let greeting: &str = "Hello"; compiles, but greeting.push_str(", world") fails with E0599: a literal is fixed text, not a growable String.

Read the full section →