summaryrefslogtreecommitdiffhomepage
path: root/th-th/typescript.th.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'th-th/typescript.th.html.markdown')
-rw-r--r--th-th/typescript.th.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/th-th/typescript.th.html.markdown b/th-th/typescript.th.html.markdown
index fc2a823b..5395c2a7 100644
--- a/th-th/typescript.th.html.markdown
+++ b/th-th/typescript.th.html.markdown
@@ -190,7 +190,7 @@ interface Person {
}
var p1: Person = { name: "Tyrone", age: 42 };
-p1.age = 25; // Error แน่นอน เพราะ p1.x ถูกกำหนดเป็น read-only
+p1.age = 25; // Error แน่นอน เพราะ p1.age ถูกกำหนดเป็น read-only
var p2 = { name: "John", age: 60 }; // สังเกตว่า p2 ไม่ได้กำหนดเป็น Person
var p3: Person = p2; // ทำได้ เป็น read-only alias ของ p2 และกำหนดเป็น Person