Replace occurrences of ..' by ..` (backtick+text+quote replaced by backtick+text+backtick).

git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1597 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
eiffel-org
2016-07-01 10:32:39 +00:00
parent 067d834eba
commit 10e39cfb40
68 changed files with 452 additions and 453 deletions

View File

@@ -28,7 +28,7 @@ There are rather exceptional but sometimes useful class designs in which the ext
=Example of violation=
<e>
<eiffel>
height: INTEGER
-- Height in pixel of Current.
@@ -37,19 +37,19 @@ width: INTEGER
do
height := height + 10
Result := 100 - height
end</e>
end</eiffel>
=Recommendation=
Ensures that no query changes the state of the current object.
In the example, one could replace the routine <e>width</e> by an attribute and calling <e>update_width</e> before querying <e>width</e> where <e>update_width</e> would be:
<e>update_width
In the example, one could replace the routine `width` by an attribute and calling `update_width` before querying `width` where `update_width` would be:
<eiffel>update_width
-- Update `height' and `width' with ....
do
height := height + 10
width := 100 - height
end</e>
end</eiffel>
Or you can remove the line <e>height := height + 10</e> from the body of <e>width</e>.
Or you can remove the line `height := height + 10` from the body of `width`.