[core] leave file open when calling hash with file argument
[scilab.git] / scilab / modules / fileio / help / ru_RU / hash.xml
index fd9441d..3be1f46 100644 (file)
@@ -102,7 +102,9 @@ hash('hello world', 'md5')
 hash('hello world', 'sha256')
 hash(['hello';'world'], 'sha3-256')
 
-hash( mopen(SCI+'/modules/core/etc/core.start') ,'sha256')
+fp = mopen(SCI+'/modules/core/etc/core.start')
+hash(fp ,'sha256')
+mclose(fp)
  ]]></programlisting>
     </refsection>
       <refsection>