Skip to content

Commit

Permalink
fix translate remaining text in structs-methods-and-interfaces.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EssaAlshammri committed Apr 6, 2024
1 parent a6d3306 commit 44b1673
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ func (r Rectangle) Area() float64 {

اذا قمت بتشغيل الاختبارات الان ستجد ان الاختبارات الخاصة بالمستطيل تمر بنجاح ولكن الدوائر لا تمر.

To make circle's `Area` function pass we will borrow the `Pi` constant from the `math` package \(remember to import it\).

حتى نصلح اختبار الدائرة، سنقوم بأستعارة الثابت `Pi` من حزمة `math` \(لا تنسى استيرادها\).

Expand Down Expand Up @@ -392,7 +391,7 @@ type Shape interface {

### ماذا قلت؟

هذا مختلف تماما عن الواجهات في معظم لغات البرمجة الاخرى. عادة ما يجب عليك كتابة الكود لتقول `نوعي Foo يتبع الواجهة Bar`.
هذا مختلف تماما عن الواجهات في معظم لغات البرمجة الاخرى. عادة ما يجب عليك كتابة الكود لتقول `MyType Foo implements Bar`.

ايه انه يجب عليك اعلان ان النوع الفلاني يتبع الواجهة الفلانية.

Expand Down

0 comments on commit 44b1673

Please sign in to comment.