Skip to content

Commit

Permalink
fix a typo in function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasily Kirichenko authored and Vasily Kirichenko committed Apr 12, 2016
1 parent 6048977 commit 2a38ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Paket.Core/Utils.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let inline force (lz: 'a Lazy) = lz.Force()
let inline endsWith text x = (^a:(member EndsWith:string->bool)x, text)
let inline toLower str = (^a:(member ToLower:unit->string)str)

let memoze (f: 'a -> 'b) : 'a -> 'b =
let memoize (f: 'a -> 'b) : 'a -> 'b =
let cache = System.Collections.Concurrent.ConcurrentDictionary<'a, 'b>()
fun (x: 'a) ->
let value : 'b ref = ref Unchecked.defaultof<_>
Expand Down Expand Up @@ -143,7 +143,7 @@ let getNative (path:string) =
""

let extractPath =
memoze <| fun (infix, fileName : string) ->
memoize <| fun (infix, fileName : string) ->
let path = fileName.Replace("\\", "/").ToLower()
let path = if path.StartsWith "lib/" then "/" + path else path
let fi = FileInfo path
Expand Down

0 comments on commit 2a38ce3

Please sign in to comment.