Skip to content

Commit 5960613

Browse files
committed
Translate a code comment
1 parent 234f7a0 commit 5960613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subtyping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ that, yes, you can use subtyping when passing by-value. That is, this works:
277277

278278
```rust
279279
fn get_box<'a>(str: &'a str) -> Box<&'a str> {
280-
// string literals are `&'static str`s
280+
// 文字列リテラルは `&'static str` です
281281
Box::new("hello")
282282
}
283283
```

0 commit comments

Comments
 (0)