Fix/add doc comments

This commit is contained in:
Tamas Vajk
2024-08-20 14:35:31 +02:00
parent a0dc20caef
commit 07a5c20309
2 changed files with 8 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ namespace Semmle.Util
}
/// <summary>
/// Computes the hash of <paramref name="filePath"/>.
/// Computes the hash of the file at <paramref name="filePath"/>.
/// </summary>
public static string ComputeFileHash(string filePath)
{
@@ -95,6 +95,9 @@ namespace Semmle.Util
return GetHashString(sha);
}
/// <summary>
/// Computes the hash of <paramref name="input"/>.
/// </summary>
public static string ComputeHash(string input)
{
var bytes = Encoding.Unicode.GetBytes(input);