[core] leave file open when calling hash with file argument
[scilab.git] / scilab / modules / fileio / help / en_US / hash.xml
index 4958c11..ed84277 100644 (file)
@@ -91,7 +91,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>