From b9e9ff3107de5565e031af877945ef6eacab98cf Mon Sep 17 00:00:00 2001 From: Maxim Philippov Date: Fri, 20 Jan 2023 14:44:52 +0300 Subject: [PATCH] Fixed typo in example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0961ce9..5498ec8 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ if the pointer is nil and default value isn't provided, `From` will panic. // panics _ = ptr.From((*float32)(nil)) -var vv = floaat32(0.5) +var vv = float32(0.5) value = ptr.From(&vv) // value = float32(0.5) value = ptr.From((*float32)(nil), 0.7) // value = float32(0.7) -``` \ No newline at end of file +```