1 00:00:05,930 --> 00:00:06,290 All right. 2 00:00:06,290 --> 00:00:10,760 So to wrap up strings, let's talk about string literals. 3 00:00:11,360 --> 00:00:18,870 So as I said, strings and string slices are always going to be a valid UTF eight sequence. 4 00:00:18,890 --> 00:00:24,830 Well, sometimes you might not want a valid UTF eight sequence, and that is where string literals are 5 00:00:24,830 --> 00:00:26,090 going to come into play. 6 00:00:26,270 --> 00:00:31,340 So let's take a quick example of what a string literal might look like. 7 00:00:31,340 --> 00:00:33,830 So we're going to create a variable called rust. 8 00:00:34,220 --> 00:00:39,230 We're going to put double quotes around it, and then we're going to use the backward slash. 9 00:00:39,530 --> 00:00:46,190 And we're going to say, in this case, I'm going to go x 52 x 75. 10 00:00:47,360 --> 00:00:52,040 X 73 and X 74. 11 00:00:52,430 --> 00:01:01,940 So these are all special characters x 52, x 75, 73, 74 and I'm using this backward slash to escape 12 00:01:01,940 --> 00:01:03,550 those special characters. 13 00:01:03,560 --> 00:01:06,680 So let's go ahead and print out. 14 00:01:09,220 --> 00:01:12,910 What we just typed. 15 00:01:15,730 --> 00:01:17,800 Cargo build. 16 00:01:19,300 --> 00:01:20,230 Cargo run. 17 00:01:20,230 --> 00:01:25,310 And we typed out rust, but we did it a super fancy way. 18 00:01:25,330 --> 00:01:32,890 So again, string literals you will want to use when you don't want to have valid UTF eight.