chore: update stackoverflow reference

This commit is contained in:
Null Chilly 2023-09-07 23:56:57 +07:00
parent 82023485fe
commit 9f60e810ed
2 changed files with 2 additions and 2 deletions

View file

@ -2,4 +2,4 @@ blank_issues_enabled: false
contact_links:
- name: Question
url: https://discord.com/servers/catppuccin-907385605422448742
about: Join our discord server for real-time answer and more!
about: Join our discord server for real-time answers and more!

View file

@ -1,7 +1,7 @@
local M = {}
local B = bit or bit32 or require "catppuccin.lib.vim.bit"
local hash_str = function(str) -- djb2, https://stackoverflow.com/questions/7666509/hash-function-for-string
local hash_str = function(str) -- djb2, https://stackoverflow.com/a/7666577/12356622
local hash = 5381
for i = 1, #str do
hash = B.lshift(hash, 5) + hash + string.byte(str, i)