summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndre Polykanine <ap@oire.me>2019-01-29 01:45:30 +0200
committerGitHub <noreply@github.com>2019-01-29 01:45:30 +0200
commit1db0e50dd7699cc5fe2d6f0ab1d7c7901e78099d (patch)
tree6a310c3fa776e194cf16abb5680f4366ba1b55d3
parentde80ef860519abe0457d88f3fea87cb89eca6069 (diff)
parent217e32442cfd9550ad53f92ce1470527ed1b89a9 (diff)
Merge pull request #3455 from eltronix/patch-1
typescript/en Fixes typo
-rw-r--r--typescript.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/typescript.html.markdown b/typescript.html.markdown
index 6feaca45..ba4a9e71 100644
--- a/typescript.html.markdown
+++ b/typescript.html.markdown
@@ -203,8 +203,8 @@ p1.age = 25; // Error, p1.x is read-only
var p2 = { name: "John", age: 60 };
var p3: Person = p2; // Ok, read-only alias for p2
-p3.x = 35; // Error, p3.x is read-only
-p2.x = 45; // Ok, but also changes p3.x because of aliasing
+p3.age = 35; // Error, p3.age is read-only
+p2.age = 45; // Ok, but also changes p3.age because of aliasing
class Car {
readonly make: string;