Jelajahi Sumber

Documentation: fix typo (#2742)

Adrien Leravat 3 tahun lalu
induk
melakukan
65578bd8db
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      docs/design/classes.md

+ 3 - 3
docs/design/classes.md

@@ -1315,9 +1315,9 @@ This means either
 [creating the object in the return statement itself](/proposals/p0257.md#function-returns-and-initialization),
 or in
 [a `returned var` declaration](/proposals/p0257.md#declared-returned-variable).
-As before, instances can be created using by casting a struct value into the
-class type, this time with a `.base` member to initialize the members of the
-immediate base type.
+As before, instances can be created by casting a struct value into the class
+type, this time with a `.base` member to initialize the members of the immediate
+base type.
 
 ```
 class MyDerivedType extends MyBaseType {