Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit e397cec

Browse files
committed
Fixed the doctest.
1 parent d4382f1 commit e397cec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/coding/linear_code.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2780,9 +2780,9 @@ def rate(self):
27802780
27812781
EXAMPLES::
27822782
2783-
sage: C = codes.RandomLinearCode(10, 5, GF(3))
2783+
sage: C = codes.HammingCode(GF(2), 3)
27842784
sage: C.rate()
2785-
1/2
2785+
4/7
27862786
"""
27872787
return self.dimension() / self.length()
27882788

0 commit comments

Comments
 (0)