summaryrefslogtreecommitdiff
path: root/src/string_view.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_view.c')
-rw-r--r--src/string_view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/string_view.c b/src/string_view.c
index 275e9bb..efb1329 100644
--- a/src/string_view.c
+++ b/src/string_view.c
@@ -14,13 +14,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-#include <string.h>
#include "string_view.h"
+#include <string.h>
string_view_t
-string_view_from_cstr(char *cstr)
+string_view_from_cstr(char* cstr)
{
- return (string_view_t) { .size = strlen(cstr), .chars = cstr };
+ return (string_view_t){ .size = strlen(cstr), .chars = cstr };
}
bool