Skip to content

Commit 16b1014

Browse files
fResultsila-strike
authored andcommitted
add more explaination
1 parent ef995a5 commit 16b1014

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_th/tour/traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ iterator.next() // returns 1
141141
> ```
142142
>
143143
> ถ้าอิงจากตัวอย่างจาก code block ด้านล่าง เราจะเห็นได้ว่า code ด้านบน\
144-
> เราส่งตัวแปร `dog` ซึ่งเป็น instance ของคลาส `Dog`\
144+
> เราส่งตัวแปร `dog` ซึ่งเป็น instance ของคลาส `Dog` ไปให้ function `getPetName`\
145145
> โดยที่คลาส `Dog` ก็เป็น subtype ของ trait `Pet` อีกทีหนึ่ง
146146
147147
{% tabs trait-pet-example class=tabs-scala-version %}

0 commit comments

Comments
 (0)