Skip to content

Commit d9f3daa

Browse files
committed
特に意味の無い文字列にコメントがついていたので説明
1 parent 6527b36 commit d9f3daa

File tree

1 file changed

+1
-0
lines changed
  • listings/ch10-generic-types-traits-and-lifetimes/listing-10-23/src

1 file changed

+1
-0
lines changed

listings/ch10-generic-types-traits-and-lifetimes/listing-10-23/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
fn main() {
33
// 長い文字列は長い
44
let string1 = String::from("long string is long");
5+
// (訳注:この言葉自体に深い意味はない。下の"xyz"より長いということだけが重要)
56

67
{
78
let string2 = String::from("xyz");

0 commit comments

Comments
 (0)